def get_latest_group_data(group_id): """ Gets latest dump of data for the specified group. :param int group_id: id of the group requested :return: Latest JSON corresponding to the requested group :rtype: flask.Response """ fetched_data = db.get_latest_group_data(g.cursor, group_id) return jsonify(data=fetched_data)
def get_latest_group_data(group_id): """ Gets latest dump of data for the specified group. :param int group_id: id of the group requested :return: Latest JSON corresponding to the requested group :rtype: flask.Response """ fetched_data = db.get_latest_group_data(g.cursor, group_id) # Add percentage_full fetched_data = annotate_fullness_percentage(fetched_data) return jsonify(data=fetched_data)