Skip to content

Commit b49429e

Browse files
committed
Attempt to fix cyclic-software#1
1 parent c76ad1e commit b49429e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ async def handle_webhook(update: TelegramUpdate, token: str = Depends(auth_teleg
137137
elif callback_data == "SUB":
138138
cursor.execute("""SELECT chat_id, link
139139
FROM users
140-
WHERE shared_status = %s AND chat_id != %s
140+
WHERE shared_status == %s AND chat_id != %s
141141
ORDER BY
142142
CASE
143143
WHEN shares < 0 THEN 2
@@ -184,7 +184,7 @@ async def handle_webhook(update: TelegramUpdate, token: str = Depends(auth_teleg
184184

185185
cursor.execute("""SELECT chat_id, link
186186
FROM users
187-
WHERE shared_status = %s AND chat_id != %s
187+
WHERE shared_status == %s AND chat_id != %s
188188
ORDER BY
189189
CASE
190190
WHEN shares < 0 THEN 2

0 commit comments

Comments
 (0)