From 4e931054076dc62d325f53cd9579ef8f336145ce Mon Sep 17 00:00:00 2001 From: VineetBala-AOT <90332175+VineetBala-AOT@users.noreply.github.com> Date: Tue, 10 Sep 2024 11:57:23 -0700 Subject: [PATCH] linting --- met-api/src/met_api/services/survey_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/met-api/src/met_api/services/survey_service.py b/met-api/src/met_api/services/survey_service.py index 4944207c4..4ab20be3f 100644 --- a/met-api/src/met_api/services/survey_service.py +++ b/met-api/src/met_api/services/survey_service.py @@ -47,7 +47,7 @@ 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 \ + 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