Fixed quadra and penta commands
authorGeorgios Atheridis <georgios@atheridis.org>
Sat, 21 Jan 2023 13:12:34 +0000 (13:12 +0000)
committerGeorgios Atheridis <georgios@atheridis.org>
Sat, 21 Jan 2023 13:12:34 +0000 (13:12 +0000)
ihaspeks/commands/penta.py
ihaspeks/commands/quadra.py

index 13be4e98398e4f960d169c1e60a59f2edc9f3235..f97b0ed6acd57f49b6274d32ffce3775d8db7029 100644 (file)
@@ -46,7 +46,7 @@ def check_queue(bot: Bot, message: Message, table: str):
         val = val - 1
         c.execute(
             f"""
-            UPDATE varvalues SET val = ? WHERE id = 'cannon';
+            UPDATE varvalues SET val = ? WHERE id = 'penta';
             """,
             (val,),
         )
@@ -66,7 +66,7 @@ def check_queue(bot: Bot, message: Message, table: str):
         val = val + 1
         c.execute(
             f"""
-            UPDATE varvalues SET val = ? WHERE id = 'cannon';
+            UPDATE varvalues SET val = ? WHERE id = 'penta';
             """,
             (val,),
         )
index 4f473c9c97bcc58cf310a44f7580e099da49978c..d1f84e9ce88931effcd5fee29e24bb7d987a7af9 100644 (file)
@@ -46,7 +46,7 @@ def check_queue(bot: Bot, message: Message, table: str):
         val = val - 1
         c.execute(
             f"""
-            UPDATE varvalues SET val = ? WHERE id = 'cannon';
+            UPDATE varvalues SET val = ? WHERE id = 'quadra';
             """,
             (val,),
         )
@@ -66,7 +66,7 @@ def check_queue(bot: Bot, message: Message, table: str):
         val = val + 1
         c.execute(
             f"""
-            UPDATE varvalues SET val = ? WHERE id = 'cannon';
+            UPDATE varvalues SET val = ? WHERE id = 'quadra';
             """,
             (val,),
         )