def getLargestTopicsTimelines(days, limit): fullObject = [{ 'name': t['name'], 'topic': t['_id'], 'timeline': getTimeline.byTopic(t['_id']) } for t in getTopics.bySize(days, limit)] return jsonify(fullObject)
def getLargestTopicsTimelines(days, limit): fullObject = [{'name': t['name'], 'topic': t['_id'], 'timeline': getTimeline.byTopic(t['_id'])} for t in getTopics.bySize(days, limit)] return jsonify(fullObject)
def getLargestTopicsEnt(days, limit): return jsonify(getTopics.bySize(days, limit))