def get_my_history(): my_history = History.get_user_history(g.current_user.id) return jsonify(history=my_history)