Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion flask_backend/repository/movies.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_all_paginated(
offset_value = (current_page - 1) * per_page
# includes the `distinct` clause both on the select and the count queries
# to avoid mismatches on pagination
query = db_session.query(Movie).join(Screening).distinct(Movie.id)
query = db_session.query(Movie).join(Screening).distinct()

if include_drafts is False:
query = query.filter(Screening.draft == False) # noqa: E712
Expand Down