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
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue