def find_match(): m = Database_queries.findMatchForUser(g.user) if isinstance(m, Match): m_schema = MatchSchema() res = m_schema.dumps(m) resp = make_response(res.data) resp.mimetype = 'application/json' return resp else: abort(404)
def find_match(): g.locale = request.headers['Accept-Language'] m = Database_queries.findMatchForUser(g.user) if isinstance(m, Match): m_schema = MatchSchema() res = m_schema.dumps(m) resp = make_response(res.data) resp.mimetype = 'application/json' return resp else: abort(404)
def generate_test_data(): g.locale = request.headers['Accept-Language'] Database_queries.createTestData() return 'ok'
def generate_test_data(): Database_queries.createTestData() return 'ok'