示例#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)