Skip to content

Commit

Permalink
Attempt to fix cyclic-software#1
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahHaile committed Nov 30, 2023
1 parent c76ad1e commit b49429e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ async def handle_webhook(update: TelegramUpdate, token: str = Depends(auth_teleg
elif callback_data == "SUB":
cursor.execute("""SELECT chat_id, link
FROM users
WHERE shared_status = %s AND chat_id != %s
WHERE shared_status == %s AND chat_id != %s
ORDER BY
CASE
WHEN shares < 0 THEN 2
Expand Down Expand Up @@ -184,7 +184,7 @@ async def handle_webhook(update: TelegramUpdate, token: str = Depends(auth_teleg

cursor.execute("""SELECT chat_id, link
FROM users
WHERE shared_status = %s AND chat_id != %s
WHERE shared_status == %s AND chat_id != %s
ORDER BY
CASE
WHEN shares < 0 THEN 2
Expand Down

0 comments on commit b49429e

Please sign in to comment.