From: Georgios Atheridis Date: Tue, 10 May 2022 08:54:23 +0000 (+0000) Subject: fixed bug on moveup and down X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=f23e018224a9d9a59ec1ca7b9192a893d63cb135;p=ihaspeks%2Faptbot-ihaspeks.git fixed bug on moveup and down --- diff --git a/skgyorugo/commands/movedown.py b/skgyorugo/commands/movedown.py index df3566a..f6deda7 100644 --- a/skgyorugo/commands/movedown.py +++ b/skgyorugo/commands/movedown.py @@ -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 = ? ) ); """, diff --git a/skgyorugo/commands/moveup.py b/skgyorugo/commands/moveup.py index 43c6b39..8363787 100644 --- a/skgyorugo/commands/moveup.py +++ b/skgyorugo/commands/moveup.py @@ -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 = ? ) ); """,