Skip to content

Commit

Permalink
[C-3769] Fix where condition for aggregate_user query. (#7575)
Browse files Browse the repository at this point in the history
  • Loading branch information
stereosteve authored Feb 13, 2024
1 parent f4a240e commit ba2263b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/discovery-provider/src/tasks/update_aggregates.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,7 @@
left join user_following ufollowing on ap.user_id = ufollowing.user_id
left join user_save us on ap.user_id = us.user_id
left join user_repost ur on ap.user_id = ur.user_id
left join ranked_genres rg on ap.user_id = rg.user_id
where
rg.genre_rank = 1
left join ranked_genres rg on ap.user_id = rg.user_id AND rg.genre_rank = 1
)
update
aggregate_user au
Expand Down

0 comments on commit ba2263b

Please sign in to comment.