def get_remix_track_parents_route(track_id): args = to_dict(request.args) if "with_users" in request.args: args["with_users"] = parse_bool_param(request.args.get("with_users")) args["track_id"] = track_id args["current_user_id"] = get_current_user_id(required=False) limit, offset = get_pagination_vars() args["limit"] = limit args["offset"] = offset tracks = get_remix_track_parents(args) return api_helpers.success_response(tracks)
def get(self, track_id): decoded_id = decode_with_abort(track_id, full_ns) request_args = remixing_parser.parse_args() current_user_id = get_current_user_id(request_args) args = { "with_users": True, "track_id": decoded_id, "current_user_id": current_user_id, "limit": format_limit(request_args), "offset": format_offset(request_args) } tracks = get_remix_track_parents(args) tracks = list(map(extend_track, tracks)) return success_response(tracks)
def get_remix_track_parents_route(track_id): args = to_dict(request.args) if "with_users" in request.args: args["with_users"] = parse_bool_param(request.args.get("with_users")) tracks = get_remix_track_parents(track_id, args) return api_helpers.success_response(tracks)