Adjustments
This commit is contained in:
parent
ad4961bbe0
commit
556c09f8f6
@ -16,16 +16,16 @@ def load(): # Programatically add a `toc` field to each entry.
|
||||
## reverse the stops and store that.
|
||||
|
||||
def parse(codeList):
|
||||
print(f"pis.parse: codeList starting length: {len(codeList)}")
|
||||
StartLen = len(codeList)
|
||||
print(f"pis.parse: codeList starting length: {StartLen}")
|
||||
for i in codeList:
|
||||
stops = i['stops']
|
||||
code = i['code']
|
||||
for ii in codeList:
|
||||
if stops == ii['stops'] and code != ii['code']:
|
||||
print("Identical stopping pattern found")
|
||||
print(ii)
|
||||
print(f"Identical stopping pattern found: {ii['code']}")
|
||||
codeList.remove(ii)
|
||||
print(f"pis.parse: codeList finishing length: {len(codeList)}")
|
||||
print(f"pis.parse: Removed {StartLen - len(codeList)} duplicates")
|
||||
return codeList
|
||||
|
||||
def devLoad(): # Programatically add a `toc` field to each entry.
|
||||
|
Reference in New Issue
Block a user