예제 #1
0
def get_article_count_all():
    return jsonify( readJson() )
예제 #2
0
def get_article_count_all():
    return jsonify(readJson())
예제 #3
0
def get_article_count(name):
    articleEditInfo = readJson()
    if name in articleEditInfo['articles']:
        return jsonify( { 'count': articleEditInfo['articles'][name] } )
    else:
        abort(404)
예제 #4
0
def get_article_count(name):
    articleEditInfo = readJson()
    if name in articleEditInfo['articles']:
        return jsonify({'count': articleEditInfo['articles'][name]})
    else:
        abort(404)