def api_log_status(): if not current_user.is_anonymous(): return Response(response=json.dumps(current_user.is_checked_in()), status=200, headers=None, content_type='application/json', direct_passthrough=False)
def api_log(): if not current_user.is_anonymous(): data = json.loads(request.data) current_user.log(data['time']) return Response(response=json.dumps(current_user.is_checked_in()), status=200, headers=None, content_type='application/json', direct_passthrough=False)