From 66fa456f6970d0112f2a16828a31131ff6523080 Mon Sep 17 00:00:00 2001 From: Georgios Atheridis Date: Thu, 12 May 2022 07:55:39 +0000 Subject: [PATCH] fixed bug --- skgyorugo/commands/available.py | 4 +++- skgyorugo/commands/forceavailable.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/skgyorugo/commands/available.py b/skgyorugo/commands/available.py index 8eaa8c8..a5216c4 100644 --- a/skgyorugo/commands/available.py +++ b/skgyorugo/commands/available.py @@ -102,7 +102,8 @@ def main(bot: Bot, message: Message): ) ) ); - """ + """, + (twitch_id,), ) c.execute( @@ -174,6 +175,7 @@ def main(bot: Bot, message: Message): AND available = 0; """, ( + twitch_id, int(time.time()), twitch_id, ), diff --git a/skgyorugo/commands/forceavailable.py b/skgyorugo/commands/forceavailable.py index 092e095..25f6c06 100644 --- a/skgyorugo/commands/forceavailable.py +++ b/skgyorugo/commands/forceavailable.py @@ -105,7 +105,8 @@ def main(bot: Bot, message: Message): ) ) ); - """ + """, + (twitch_id,), ) c.execute( @@ -177,6 +178,7 @@ def main(bot: Bot, message: Message): AND available = 0; """, ( + twitch_id, int(time.time()), twitch_id, ), -- 2.30.2