shrug
This commit is contained in:
@@ -34,7 +34,7 @@ def get_current_user():
|
|||||||
if current_user.is_authenticated:
|
if current_user.is_authenticated:
|
||||||
return jsonify(current_user.to_dict())
|
return jsonify(current_user.to_dict())
|
||||||
else:
|
else:
|
||||||
return jsonify({"username": "NONE", "authenticated": False})
|
return jsonify({"username": "NONE", "is_admin": "false", "authenticated": False})
|
||||||
return "Unauthd", 403
|
return "Unauthd", 403
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ def create_table():
|
|||||||
@tables.route("/tables/<table_id>")
|
@tables.route("/tables/<table_id>")
|
||||||
def get_table(table_id):
|
def get_table(table_id):
|
||||||
table = GameTable.query.get_or_404(table_id)
|
table = GameTable.query.get_or_404(table_id)
|
||||||
current_app.logger.info(table)
|
|
||||||
return jsonify(table.to_dict())
|
return jsonify(table.to_dict())
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user