Пример #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)
Пример #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])
Пример #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")
Пример #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])
Пример #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")
Пример #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)