Commit 0675c446 authored by okhin's avatar okhin
Browse files

Adding the db to admin commands, to avoid sqlite3 errors

parent 84c816e6
Pipeline #704 passed with stage
in 3 seconds
......@@ -483,13 +483,13 @@ def static_files(filepath):
def little_admin():
def little_admin(db):
users = db.execute('SELECT api, token, admin FROM users').fetchall()
return template('index', users=users)'/admin')
def medium_admin():
def medium_admin(db):
api = request.forms.get('api')
token = request.forms.get('token')
admin = request.forms.get('admin')
Supports Markdown
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