def get_max_id_route(type): try: latest = get_max_id(type) return api_helpers.success_response(latest) except exceptions.ArgumentError as e: return api_helpers.error_response(str(e), 400)
def get(self): latest = get_max_id("track") return success_response(latest)