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
bots, credentials
WHERE
bots.credentials_id = (SELECT
credentials_id
FROM
bots
WHERE
handle = %s)
bots.handle = %s
AND bots.credentials_id = credentials.id
""", (handle,))
bot = dc.fetchone()