def get_article_count_all(): return jsonify( readJson() )
def get_article_count_all(): return jsonify(readJson())
def get_article_count(name): articleEditInfo = readJson() if name in articleEditInfo['articles']: return jsonify( { 'count': articleEditInfo['articles'][name] } ) else: abort(404)
def get_article_count(name): articleEditInfo = readJson() if name in articleEditInfo['articles']: return jsonify({'count': articleEditInfo['articles'][name]}) else: abort(404)