From 9232c740a03fe92db627a0cb97bef014e8ed3c4d Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sun, 4 Jun 2023 19:20:18 +0100 Subject: [PATCH] Add notes for PIS development --- src/pis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pis.py b/src/pis.py index 73885d2..de8e2a1 100644 --- a/src/pis.py +++ b/src/pis.py @@ -54,7 +54,7 @@ def parse(codeList): for ii in codeList: if stops == ii['stops'] and code != ii['code']: print(f"Identical stopping pattern found: {ii['code']}") - codeList.remove(ii) + codeList.remove(ii) # Instead of removing, I should add a property (duplicate: true), then I can filter this out on the backend when searching by start and end stations and just use query one for other queries, this means that when searching by code, a perfectly valid code won't show 0 results. tiplocs = [] for iii in stops: print(iii)