예제 #1
0
파일: app.py 프로젝트: nkrumm/gauss
def studies():
    """
    Flask function to list of all available studies
    """
    study_mgr = study_manager(db="test",conn=g.conn)
    study_rows = study_mgr.get_all_studies()
    return render_template("studies.html", study_rows=study_rows, columns=["study_name","study_description", "date_added"])
예제 #2
0
파일: app.py 프로젝트: nkrumm/gauss
def study_info(study_name):
    """
    Flask function to show details of a particular study. 
    Nothing useful currently implemented here.
    """
    study_mgr = study_manager(db="test",conn=g.conn)
    info = study_mgr.get_study(study_name)
    return render_template("study_info.html", study_name=study_name, data=info)