Add notes for PIS development

This commit is contained in:
Fred Boniface 2023-06-04 19:20:18 +01:00
parent 71d32a4303
commit 9232c740a0

View File

@ -54,7 +54,7 @@ def parse(codeList):
for ii in codeList: for ii in codeList:
if stops == ii['stops'] and code != ii['code']: if stops == ii['stops'] and code != ii['code']:
print(f"Identical stopping pattern found: {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 = [] tiplocs = []
for iii in stops: for iii in stops:
print(iii) print(iii)