From 556c09f8f693740c31ae0fb679774ce804837c2a Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sat, 6 May 2023 20:47:34 +0100 Subject: [PATCH] Adjustments --- src/pis.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pis.py b/src/pis.py index 470e315..65ae7cb 100644 --- a/src/pis.py +++ b/src/pis.py @@ -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.