Exemplo n.º 1
0
def get_landing_for_user(username):
    dbw = DatabaseWrapper(GITOLITE_ADMIN_PATH, DATABASE_PORT)
    classes = dbw.get_classes_for_user(username)
    projects = dbw.get_projects_for_user(username)
    submissions = dbw.get_submissions_for_user(username)
    return jsonify(dict(classes=classes, projects=projects, submissions=submissions))
Exemplo n.º 2
0
def get_classes_for_user(username):
    dbw = DatabaseWrapper(GITOLITE_ADMIN_PATH, DATABASE_PORT)
    return jsonify({"classes": dbw.get_classes_for_user(username)})