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:
parent
a9fcda794c
commit
7ee4042592
1 changed files with 2 additions and 6 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue