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)