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