Example #1
0
def post_date_single(key):
    item = get_post_by_date(key, g.db_file)
    if item == {}:
        abort(404)
    return render_template("single_item.html", item=item)
Example #2
0
def post_date_pretty(key):
    item = get_post_by_date(key, g.db_file)
    if item == {}:
        abort(404)
    return render_template("index.html", items=[item])
Example #3
0
def post_date(key):
    item = get_post_by_date(key, g.db_file)
    if item == {}:
        abort(404)
    return Response(dumps(item), mimetype="application/json")
Example #4
0
def post_date_pretty(key):
    item = get_post_by_date(key, g.db_file)
    if item == {}:
        abort(404)
    return render_template("index.html", items=[item])
Example #5
0
def post_date(key):
    item = get_post_by_date(key, g.db_file)
    if item == {}:
        abort(404)
    return Response(dumps(item), mimetype="application/json")
Example #6
0
def post_date_single(key):
    item = get_post_by_date(key, g.db_file)
    if item == {}:
        abort(404)
    return render_template("single_item.html", item=item)