diff --git a/parsers/caves.py b/parsers/caves.py index d69273f..288719d 100644 --- a/parsers/caves.py +++ b/parsers/caves.py @@ -847,9 +847,11 @@ def readcaves(): with open(fpending, "r") as fo: cids = fo.readlines() for cid in cids: - pcaveid = cid.strip().rstrip("\n") - if pcaveid !="": - pending.add(pcaveid) + pcaveid = cid.split(";", 1)[0] # split on ";" and take the first bit + pcaveid = pcaveid.strip().rstrip("\n") + if pcaveid =="": + continue + pending.add(pcaveid) with transaction.atomic(): print(" - Deleting Caves and Entrances")