Skip to content

Commit

Permalink
feat: add condition on whether to clean or not
Browse files Browse the repository at this point in the history
  • Loading branch information
CBROWN-ONS committed Feb 9, 2024
1 parent b0930c8 commit 17376fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/transport_performance/gtfs/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,8 @@ def html_report(
date = datetime.datetime.strftime(datetime.datetime.now(), "%d-%m-%Y")

# feed evaluation
self.clean_feed(validate=True, fast_travel=True)
if clean_feed:
self.clean_feed(validate=True, fast_travel=True)
# re-validate to clean any newly raised errors/warnings
validation_dataframe = self.is_valid(far_stops=True)

Expand Down

0 comments on commit 17376fe

Please sign in to comment.