diff --git a/src/modules/database/database.py b/src/modules/database/database.py index 752337a..414efd5 100644 --- a/src/modules/database/database.py +++ b/src/modules/database/database.py @@ -274,7 +274,7 @@ class Database(ModuleABC, OnReadyABC): join.leaved_on = datetime.now() server_st: ServerSettings = self._config.get_configuration(f'DSERVER_{guild.id}') - if ((join.leaved_on - join.joined_on).total_seconds/60/60) > server_st.max_voice_state_hours: + if ((join.leaved_on - join.joined_on).total_seconds()/60/60) > server_st.max_voice_state_hours: join.leaved_on = join.joined_on + datetime.timedelta(hours=server_st.max_voice_state_hours) self._user_joins_vc.update_user_joined_voice_channel(join)