Skip to content

Commit

Permalink
Test apply early limit true (#3870)
Browse files Browse the repository at this point in the history
  • Loading branch information
jowlee authored Sep 14, 2022
1 parent baed51d commit d46fbab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions discovery-provider/src/queries/get_trending_tracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def generate_unpopulated_trending(
# tracks we return later may be smaller than the limit.
# If we don't limit it here, we limit it later after getting the
# unpopulated tracks.
should_apply_limit_early = not exclude_premium
should_apply_limit_early = True # not exclude_premium
if should_apply_limit_early:
sorted_track_scores = sorted_track_scores[:limit]

Expand Down Expand Up @@ -108,7 +108,7 @@ def generate_unpopulated_trending_from_mat_views(
# tracks we return later may be smaller than the limit.
# If we don't limit it here, we limit it later after getting the
# unpopulated tracks.
should_apply_limit_early = not exclude_premium
should_apply_limit_early = True # not exclude_premium
if should_apply_limit_early:
trending_track_ids = (
trending_track_ids_query.order_by(
Expand Down
2 changes: 1 addition & 1 deletion discovery-provider/src/queries/get_underground_trending.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def wrapped():
# tracks we return later may be smaller than the limit.
# If we don't limit it here, we limit it later after getting the
# unpopulated tracks.
should_apply_limit_early = not SHOULD_TRENDING_EXCLUDE_PREMIUM_TRACKS
should_apply_limit_early = True # not SHOULD_TRENDING_EXCLUDE_PREMIUM_TRACKS
if should_apply_limit_early:
sorted_tracks = sorted_tracks[:UNDERGROUND_TRENDING_LENGTH]

Expand Down

0 comments on commit d46fbab

Please sign in to comment.