Replace / by quotes
This commit is contained in:
parent
8492234be4
commit
93ea3d57fa
1 changed files with 0 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue