Skip to content

Commit 35f8a83

Browse files
committed
lint
1 parent cb7e274 commit 35f8a83

File tree

1 file changed

+8
-4
lines changed
  • functions-python/process_validation_report/src

1 file changed

+8
-4
lines changed

functions-python/process_validation_report/src/main.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,17 @@ def generate_report_entities(
150150
dataset.validation_reports.append(validation_report_entity)
151151

152152
if (
153-
"summary" in json_report
154-
and "feedInfo" in json_report["summary"]
153+
"summary" in json_report
154+
and "feedInfo" in json_report["summary"]
155155
and "feedServiceWindowStart" in json_report["summary"]["feedInfo"]
156156
and "feedServiceWindowEnd" in json_report["summary"]["feedInfo"]
157157
):
158-
dataset.service_date_range_start = json_report["summary"]["feedInfo"]["feedServiceWindowStart"]
159-
dataset.service_date_range_end = json_report["summary"]["feedInfo"]["feedServiceWindowEnd"]
158+
dataset.service_date_range_start = json_report["summary"]["feedInfo"][
159+
"feedServiceWindowStart"
160+
]
161+
dataset.service_date_range_end = json_report["summary"]["feedInfo"][
162+
"feedServiceWindowEnd"
163+
]
160164

161165
for feature_name in json_report["summary"]["gtfsFeatures"]:
162166
feature = get_feature(feature_name, session)

0 commit comments

Comments
 (0)