Skip to content

Commit

Permalink
fixing linting
Browse files Browse the repository at this point in the history
  • Loading branch information
VineetBala-AOT authored Sep 12, 2024
1 parent 7b5000e commit 660bb30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion met-api/src/met_api/models/survey.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_open(cls, survey_id) -> Survey:
survey: Survey = db.session.query(Survey).filter_by(id=survey_id) \
.join(Engagement) \
.filter(or_(Engagement.status_id == Status.Published.value, Engagement.status_id == Status.Closed.value)) \
.filter(and_(func.date(Engagement.start_date) <= now, \
.filter(and_(func.date(Engagement.start_date) <= now,
local_datetime().replace(tzinfo=None) <= extended_end_date)) \
.join(EngagementStatus) \
.first()
Expand Down

0 comments on commit 660bb30

Please sign in to comment.