1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-25 08:38:59 +00:00

fix an SQL query that was causing bots to use the wrong credentials

This commit is contained in:
Lynne Megido 2019-09-14 11:49:34 +10:00
parent a9fcda794c
commit 7ee4042592

View file

@ -64,12 +64,8 @@ def make_post(args):
FROM FROM
bots, credentials bots, credentials
WHERE WHERE
bots.credentials_id = (SELECT bots.handle = %s
credentials_id AND bots.credentials_id = credentials.id
FROM
bots
WHERE
handle = %s)
""", (handle,)) """, (handle,))
bot = dc.fetchone() bot = dc.fetchone()