Skip to content

Commit

Permalink
Filter sitemaps properly (#7233)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson authored Jan 18, 2024
1 parent 5f8d5d2 commit f9132ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/discovery-provider/src/queries/get_sitemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ def get_max_track_count(session: Session) -> int:
.filter(
Track.is_current == True,
Track.stem_of == None,
Track.is_unlisted == False,
Track.is_scheduled_release == False,
Track.is_available == True,
User.is_current == True,
TrackRoute.is_current == True,
Expand Down Expand Up @@ -201,6 +203,8 @@ def get_track_slugs(session: Session, limit: int, offset: int):
Track.is_current == True,
Track.stem_of == None,
Track.is_available == True,
Track.is_unlisted == False,
Track.is_scheduled_release == False,
User.is_current == True,
TrackRoute.is_current == True,
)
Expand Down

0 comments on commit f9132ca

Please sign in to comment.