diff --git a/met-api/src/met_api/services/poll_response_service.py b/met-api/src/met_api/services/poll_response_service.py index c6d4af07a..dd070f2ad 100644 --- a/met-api/src/met_api/services/poll_response_service.py +++ b/met-api/src/met_api/services/poll_response_service.py @@ -87,7 +87,7 @@ def get_poll_details_with_response_counts(poll_id): ) .select_from(PollAnswer) .outerjoin(PollResponseModel, PollAnswer.id == PollResponseModel.selected_answer_id) - .filter(PollAnswer.poll_id == poll_id) # Make sure this is the correct filter condition + .filter(PollAnswer.poll_id == poll_id) .group_by(PollAnswer.id, PollAnswer.answer_text) .all() )