Exemple #1
0
def get_users_with_fbids(fbids):
    return db.query("SELECT * FROM users WHERE fbid IN "+db.format_in(fbids), *fbids)
Exemple #2
0
def dbget_measures_for_exercise_type(exercise_type_id):
    return db.query("SELECT * FROM measures WHERE exercise_type_id=%s",
                    exercise_type_id)
def dbget_data_points_for_entry(entry_id):
    return db.query("SELECT * FROM data_points WHERE entry_id=%s", entry_id)
Exemple #4
0
def dbget_all_exercise_types():
    return db.query("SELECT * FROM exercise_types")
def dbget_entries_for_user(uid):
    return db.query("SELECT * FROM entries WHERE user_id=%s", uid)