Skip to content

Commit

Permalink
fxing linting on survey service
Browse files Browse the repository at this point in the history
  • Loading branch information
VineetBala-AOT authored Sep 10, 2024
1 parent b58d9f3 commit a29dcb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions met-api/src/met_api/services/survey_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def get(cls, survey_id):
extended_end_date = engagement_model.end_date + timedelta(days=1, hours=8)
# Get the current local datetime
current_datetime = local_datetime().replace(tzinfo=None)
if ((engagement_model.status_id == Status.Published.value) or
(engagement_model.status_id == Status.Closed.value and current_datetime <= extended_end_date)):
if ((engagement_model.status_id == Status.Published.value) or \
(engagement_model.status_id == Status.Closed.value and current_datetime <= extended_end_date)):
# Published Engagement anyone can access.
skip_auth = True
else:
Expand Down

0 comments on commit a29dcb3

Please sign in to comment.