Пример #1
0
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)
Пример #2
0
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."
Пример #3
0
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."
Пример #4
0
def scri():
    entries = get_entries(filter_clb="scri")
    return render_template("scri.html", entries=entries)
Пример #5
0
def stac():
    entries = get_entries(filter_clb="stac")
    return render_template("stac.html", entries=entries)
Пример #6
0
def sports():
    entries = get_entries(filter_soc="spo")
    return render_template("sports.html", entries=entries)
Пример #7
0
def hos():
    entries = get_entries(filter_soc="hos")
    return render_template("hos_info.html",entries=entries)
Пример #8
0
def academics():
    entries = get_entries(filter_soc="aca")
    return render_template("acad.html", entries=entries)
Пример #9
0
def tech():
    entries = get_entries(filter_soc="tec")
    return render_template("tech.html", entries=entries)
Пример #10
0
def index():
    entries = get_entries()
    return render_template("home.html", entries=entries)
Пример #11
0
def index():
    entries = get_entries()
    return render_template("home.html", entries=entries)
Пример #12
0
def literary_edls():
    entries = get_entries(filter_clb="edl")
    return render_template("literary.html", entries=entries)
Пример #13
0
def academics():
    entries = get_entries(filter_soc="aca")
    return render_template("acad.html", entries=entries)
Пример #14
0
def cultural():
    entries = get_entries(filter_soc="cul")
    return render_template("cult.html", entries=entries)
Пример #15
0
def tech():
    entries = get_entries(filter_soc="tec")
    return render_template("tech.html", entries=entries)
Пример #16
0
def edls():
    entries = get_entries(filter_clb="edl")
    return render_template("edl.html", entries=entries)
Пример #17
0
def photography():
    entries = get_entries(filter_clb="pho")
    return render_template("pho.html", entries=entries)
Пример #18
0
def cultural():
    entries = get_entries(filter_soc="cul")
    return render_template("cult.html", entries=entries)
Пример #19
0
def pm():
    entries = get_entries(filter_clb="pm")
    return render_template("pm.html", entries=entries)
Пример #20
0
def hockey():
    entries = get_entries(filter_clb="hoc")
    return render_template("hoc.html", entries=entries)
Пример #21
0
def art():
    entries = get_entries(filter_clb="art")
    return render_template("art.html", entries=entries)
Пример #22
0
def athletics():
    entries = get_entries(filter_clb="ath")
    return render_template("ath.html", entries=entries)
Пример #23
0
def robotics():
    entries = get_entries(filter_clb="rob")
    return render_template("rob.html", entries=entries)
Пример #24
0
def nss():
    entries = get_entries(filter_soc="nss")
    return render_template("nss.html", entries=entries)
Пример #25
0
def programming():
    entries = get_entries(filter_clb="pro")
    return render_template("pro.html", entries=entries)
Пример #26
0
def sports():
    entries = get_entries(filter_soc="spo")
    return render_template("sports.html", entries=entries)
Пример #27
0
def literary():
    entries = get_entries(filter_soc="lit")
    return render_template("literary.html", entries=entries)
Пример #28
0
def electronics():
    entries = get_entries(filter_clb="rob")
    return render_template("ele.html", entries=entries)
Пример #29
0
def cricket():
    entries = get_entries(filter_clb="cri")
    return render_template("cri.html", entries=entries)
Пример #30
0
def mad():
    entries = get_entries(filter_clb="mad")
    return render_template("mad.html", entries=entries)
Пример #31
0
def football():
    entries = get_entries(filter_clb="foo")
    return render_template("foo.html", entries=entries)
Пример #32
0
def energy():
    entries = get_entries(filter_clb="ene")
    return render_template("ene.html", entries=entries)
Пример #33
0
def basketball():
    entries = get_entries(filter_clb="bas")
    return render_template("bas.html", entries=entries)
Пример #34
0
def literary():
    entries = get_entries(filter_soc="lit")
    return render_template("literary.html", entries=entries)
Пример #35
0
def badminton():
    entries = get_entries(filter_clb="bad")
    return render_template("bad.html", entries=entries)
Пример #36
0
def magazine():
    entries = get_entries(filter_clb="mag")
    return render_template("mag.html", entries=entries)
Пример #37
0
def tt():
    entries = get_entries(filter_clb="tt")
    return render_template("tt.html", entries=entries)
Пример #38
0
def music():
    entries = get_entries(filter_clb="mus")
    return render_template("mus.html", entries=entries)
Пример #39
0
def volleyball():
    entries = get_entries(filter_clb="vol")
    return render_template("vol.html", entries=entries)