Skip to content

Commit

Permalink
fix: change schema query to make more appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramir Mesquita committed Dec 10, 2024
1 parent 3b7a2cb commit 400a0c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/answers/crud/answers.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ async def get_respondents_submit_dates(
query = query.where(func.date(AnswerSchema.created_at) >= filters.from_date)
query = query.where(func.date(AnswerSchema.created_at) <= filters.to_date)
query = query.where(AnswerSchema.applet_id == applet_id)
query = query.where(AnswerSchema.activity_history_id.contains(filters.activity_id))
query = query.where(AnswerSchema.id_from_history_id(AnswerSchema.activity_history_id) == str(filters.activity_id))

if filters.respondent_id:
query = query.where(AnswerSchema.respondent_id == filters.respondent_id)
Expand Down

0 comments on commit 400a0c6

Please sign in to comment.