示例#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)