def combine(): ''' Returns a list of all the top contributors and recipes for hall of fame page ''' recipes = (Recipe.get_highest_rated_recipes(10)) users = (User.top_contributors()) response = jsonify({'Recipes': recipes, 'Users': users}) response.status_code = 200 return response
def top_rated(): ''' Returns a list of all the highest rated recipes ''' return jsonify(Recipe.get_highest_rated_recipes(10))