From c7fd19f4774e59da93f8a4900d48a9ae34cf945a Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Fri, 6 Dec 2024 11:45:16 +0000 Subject: [PATCH] Fix syntax err --- src/validate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/validate.py b/src/validate.py index 55225e9..8508310 100644 --- a/src/validate.py +++ b/src/validate.py @@ -55,7 +55,7 @@ def check_and_validate_against_owlboard(train_entries): output.append(train_entry) # Else if only one possible entry (and previous statements false), open issue - elif len(train_entry['timetable_entries'] and train_entry['diagram_pis_code'] != "____") == 1: + elif len(train_entry['timetable_entries']) == 1 and train_entry['diagram_pis_code'] != "____": issue_title = f"PIS Error | Code: {train_entry['diagram_pis_code']}" issue_content = f""" PIS Code {train_entry['diagram_pis_code']}.