Commit 21d4fcd5 authored by okhin's avatar okhin 🚴

Merge branch '5-fix-unauthorized-calls' into 'master'

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

See merge request !12
parents 107d27ab 289e5348
Pipeline #936 passed with stage
in 5 seconds
......@@ -487,7 +487,7 @@ def little_admin():
users = db.execute('SELECT api, token, admin FROM users').fetchall()
# Get the list of all blacklist patterns
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')
@auth_basic(login_admin)
......@@ -518,7 +518,7 @@ def medium_admin():
users = db.execute('SELECT api, token, admin FROM users').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__':
......
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