From 56c326825d8a97bcd56f2fcaccd41eb0a49e0ce2 Mon Sep 17 00:00:00 2001 From: isaac Date: Thu, 1 Sep 2022 23:45:17 +0000 Subject: [PATCH] Fix get tracks by removing shared cache --- discovery-provider/src/queries/get_tracks.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/discovery-provider/src/queries/get_tracks.py b/discovery-provider/src/queries/get_tracks.py index 954e7536c06..8cc35ec7997 100644 --- a/discovery-provider/src/queries/get_tracks.py +++ b/discovery-provider/src/queries/get_tracks.py @@ -8,7 +8,6 @@ from src.models.tracks.track_route import TrackRoute from src.models.tracks.track_with_aggregates import TrackWithAggregates from src.models.users.user import User -from src.queries.get_unpopulated_tracks import get_unpopulated_tracks from src.queries.query_helpers import ( SortDirection, SortMethod, @@ -245,22 +244,6 @@ def get_tracks_and_ids(): if not args["routes"]: return ([], []) - can_use_shared_cache = ( - "id" in args - and "min_block_number" not in args - and "sort" not in args - and "sort_method" not in args - and "user_id" not in args - ) - - if can_use_shared_cache: - should_filter_deleted = args.get("filter_deleted", False) - tracks = get_unpopulated_tracks( - session, args["id"], should_filter_deleted - ) - track_ids = list(map(lambda track: track["track_id"], tracks)) - return (tracks, track_ids) - (limit, offset) = get_pagination_vars() args["limit"] = limit args["offset"] = offset