def main(): """ launch test on each file. """ bool_save, bool_tycat, bool_log, filepaths = get_entries() for filepath in filepaths: test(filepath, bool_save, bool_tycat, bool_log)
def entry(): entry_hex = request.args.get("id") entry_raw = unhexlify(entry_hex) entries_raw = get_entries_raw() entries = get_entries() if entry_raw in entries_raw: date, society, club = get_entry_mdata(entry_raw) with open(entry_raw) as doc: entry = [markdown(doc.read()), societies[society], date] print(entry) return render_template("entry.html", entry=entry, recent_entries=entries[:4]) else: return "Problem with retrieving entry."
def scri(): entries = get_entries(filter_clb="scri") return render_template("scri.html", entries=entries)
def stac(): entries = get_entries(filter_clb="stac") return render_template("stac.html", entries=entries)
def sports(): entries = get_entries(filter_soc="spo") return render_template("sports.html", entries=entries)
def hos(): entries = get_entries(filter_soc="hos") return render_template("hos_info.html",entries=entries)
def academics(): entries = get_entries(filter_soc="aca") return render_template("acad.html", entries=entries)
def tech(): entries = get_entries(filter_soc="tec") return render_template("tech.html", entries=entries)
def index(): entries = get_entries() return render_template("home.html", entries=entries)
def literary_edls(): entries = get_entries(filter_clb="edl") return render_template("literary.html", entries=entries)
def cultural(): entries = get_entries(filter_soc="cul") return render_template("cult.html", entries=entries)
def edls(): entries = get_entries(filter_clb="edl") return render_template("edl.html", entries=entries)
def photography(): entries = get_entries(filter_clb="pho") return render_template("pho.html", entries=entries)
def pm(): entries = get_entries(filter_clb="pm") return render_template("pm.html", entries=entries)
def hockey(): entries = get_entries(filter_clb="hoc") return render_template("hoc.html", entries=entries)
def art(): entries = get_entries(filter_clb="art") return render_template("art.html", entries=entries)
def athletics(): entries = get_entries(filter_clb="ath") return render_template("ath.html", entries=entries)
def robotics(): entries = get_entries(filter_clb="rob") return render_template("rob.html", entries=entries)
def nss(): entries = get_entries(filter_soc="nss") return render_template("nss.html", entries=entries)
def programming(): entries = get_entries(filter_clb="pro") return render_template("pro.html", entries=entries)
def literary(): entries = get_entries(filter_soc="lit") return render_template("literary.html", entries=entries)
def electronics(): entries = get_entries(filter_clb="rob") return render_template("ele.html", entries=entries)
def cricket(): entries = get_entries(filter_clb="cri") return render_template("cri.html", entries=entries)
def mad(): entries = get_entries(filter_clb="mad") return render_template("mad.html", entries=entries)
def football(): entries = get_entries(filter_clb="foo") return render_template("foo.html", entries=entries)
def energy(): entries = get_entries(filter_clb="ene") return render_template("ene.html", entries=entries)
def basketball(): entries = get_entries(filter_clb="bas") return render_template("bas.html", entries=entries)
def badminton(): entries = get_entries(filter_clb="bad") return render_template("bad.html", entries=entries)
def magazine(): entries = get_entries(filter_clb="mag") return render_template("mag.html", entries=entries)
def tt(): entries = get_entries(filter_clb="tt") return render_template("tt.html", entries=entries)
def music(): entries = get_entries(filter_clb="mus") return render_template("mus.html", entries=entries)
def volleyball(): entries = get_entries(filter_clb="vol") return render_template("vol.html", entries=entries)