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"])
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)