mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-12-27 14:58:59 +00:00
correctly display bot enabled status
This commit is contained in:
parent
950db1de8e
commit
8f72d14243
1 changed files with 1 additions and 1 deletions
2
webui.py
2
webui.py
|
@ -35,7 +35,7 @@ def home():
|
|||
c.execute("SELECT COUNT(*) FROM `bots` WHERE user_id = %s AND enabled = TRUE", (session['user_id'],))
|
||||
active_count = c.fetchone()[0]
|
||||
dc = mysql.connection.cursor(MySQLdb.cursors.DictCursor)
|
||||
dc.execute("SELECT `handle` FROM `bots` WHERE user_id = %s", (session['user_id'],))
|
||||
dc.execute("SELECT `handle`, `enabled` FROM `bots` WHERE user_id = %s", (session['user_id'],))
|
||||
bots = dc.fetchall()
|
||||
dc.close()
|
||||
bot_users = {}
|
||||
|
|
Loading…
Reference in a new issue