Replace / by quotes

This commit is contained in:
Rien Maertens 2019-02-13 20:36:10 +01:00
parent 8492234be4
commit 93ea3d57fa
No known key found for this signature in database
GPG key ID: 10C6D8C91DE58E4A

View file

@ -20,12 +20,6 @@ response_setting = "in_channel"
from app import models from app import models
@app.route('/', methods=['GET'])
def hello_world():
message = "It's aliiiiiiiiiiiiiiiiiiiiiive!\n"
message += "There are {} users in the database.\n".format(models.User.query.count())
return message
def check_regular(username): def check_regular(username):
'''Check if a user has the permissions of a regular user.''' '''Check if a user has the permissions of a regular user.'''
return models.User.query.filter_by(username=username, authorized=True).first() is not None return models.User.query.filter_by(username=username, authorized=True).first() is not None