예제 #1
0
파일: views.py 프로젝트: zykis/DotaAsker
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)
예제 #2
0
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)
예제 #3
0
def generate_test_data():
    g.locale = request.headers['Accept-Language']
    Database_queries.createTestData()
    return 'ok'
예제 #4
0
파일: views.py 프로젝트: zykis/DotaAsker
def generate_test_data():
    Database_queries.createTestData()
    return 'ok'