Beispiel #1
0
def dbget_user_by_fbid(fbid):
    return db.get("SELECT * FROM users WHERE fbid=%s", fbid)
Beispiel #2
0
def dbget_user(uid):
    return db.get("SELECT * FROM users WHERE id=%s", uid)
Beispiel #3
0
def dbget_exercise_type(exercise_type_id):
    return db.get("SELECT * FROM exercise_types WHERE id=%s",
                  exercise_type_id)
Beispiel #4
0
def dbget_measure(measure_id):
    return db.get("SELECT * FROM measures WHERE id=%s", measure_id)
Beispiel #5
0
def get_entry(entry_id):
    return translate(db.get("SELECT * FROM entries WHERE id=%s", entry_id))