Commit 289e5348 authored by okhin's avatar okhin 🚴

Fixing the parameters for the blacklisted items passed to the admin page

parent e39f3687
...@@ -487,7 +487,7 @@ def little_admin(): ...@@ -487,7 +487,7 @@ def little_admin():
users = db.execute('SELECT api, token, admin FROM users').fetchall() users = db.execute('SELECT api, token, admin FROM users').fetchall()
# Get the list of all blacklist patterns # Get the list of all blacklist patterns
balcklisted = db.execute('SELECT pattern, reason FROM blacklist').fetchall() balcklisted = db.execute('SELECT pattern, reason FROM blacklist').fetchall()
return template('index', users=users, blacklists=blacklist) return template('index', users=users, blacklists=blacklisted)
@app.post('/admin') @app.post('/admin')
@auth_basic(login_admin) @auth_basic(login_admin)
...@@ -518,7 +518,7 @@ def medium_admin(): ...@@ -518,7 +518,7 @@ def medium_admin():
users = db.execute('SELECT api, token, admin FROM users').fetchall() users = db.execute('SELECT api, token, admin FROM users').fetchall()
balcklisted = db.execute('SELECT pattern, reason FROM blacklist').fetchall() balcklisted = db.execute('SELECT pattern, reason FROM blacklist').fetchall()
return template('index', users=users, blacklists=blacklist) return template('index', users=users, blacklists=blacklisted)
if __name__ == '__main__': if __name__ == '__main__':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment