fixed bug on moveup and down
authorGeorgios Atheridis <atheridis@tutamail.com>
Tue, 10 May 2022 08:54:23 +0000 (08:54 +0000)
committerGeorgios Atheridis <atheridis@tutamail.com>
Tue, 10 May 2022 08:54:23 +0000 (08:54 +0000)
skgyorugo/commands/movedown.py
skgyorugo/commands/moveup.py

index df3566afc89da3d832953110897861208a0fc2de..f6deda761c2a7176ecd32562c75a0b765bcf4d7c 100644 (file)
@@ -60,7 +60,7 @@ def main(bot: Bot, message: Message):
                             FROM
                                 lol_queue
                             WHERE
-                                name = ?
+                                twitch_id = ?
                         )
                 ) + (
                     SELECT
@@ -68,7 +68,7 @@ def main(bot: Bot, message: Message):
                     FROM
                         lol_queue
                     WHERE
-                        name = ?
+                        twitch_id = ?
                 ) - position
             WHERE
                 position in (
@@ -84,7 +84,7 @@ def main(bot: Bot, message: Message):
                                 FROM
                                     lol_queue
                                 WHERE
-                                    name = ?
+                                    twitch_id = ?
                             )
                     ),
                     (
@@ -93,7 +93,7 @@ def main(bot: Bot, message: Message):
                         FROM
                             lol_queue
                         WHERE
-                            name = ?
+                            twitch_id = ?
                     )
                 );
             """,
index 43c6b3993f21912e8f331233a5a77fba8a732808..83637873ed4ad6a0fce18dcf4693d1ef2665afed 100644 (file)
@@ -60,7 +60,7 @@ def main(bot: Bot, message: Message):
                             FROM
                                 lol_queue
                             WHERE
-                                name = ?
+                                twitch_id = ?
                         )
                 ) + (
                     SELECT
@@ -68,7 +68,7 @@ def main(bot: Bot, message: Message):
                     FROM
                         lol_queue
                     WHERE
-                        name = ?
+                        twitch_id = ?
                 ) - position
             WHERE
                 position in (
@@ -84,7 +84,7 @@ def main(bot: Bot, message: Message):
                                 FROM
                                     lol_queue
                                 WHERE
-                                    name = ?
+                                    twitch_id = ?
                             )
                     ),
                     (
@@ -93,7 +93,7 @@ def main(bot: Bot, message: Message):
                         FROM
                             lol_queue
                         WHERE
-                            name = ?
+                            twitch_id = ?
                     )
                 );
             """,