From 286c65325272ad486d41524ec863705c76bbc02f Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 21 Dec 2021 17:24:16 +0100 Subject: [PATCH] Fixed bug in database module --- src/modules/database/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)