mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-15 07:07:13 +00:00
bug in pending caves parsing
This commit is contained in:
@@ -847,9 +847,11 @@ def readcaves():
|
|||||||
with open(fpending, "r") as fo:
|
with open(fpending, "r") as fo:
|
||||||
cids = fo.readlines()
|
cids = fo.readlines()
|
||||||
for cid in cids:
|
for cid in cids:
|
||||||
pcaveid = cid.strip().rstrip("\n")
|
pcaveid = cid.split(";", 1)[0] # split on ";" and take the first bit
|
||||||
if pcaveid !="":
|
pcaveid = pcaveid.strip().rstrip("\n")
|
||||||
pending.add(pcaveid)
|
if pcaveid =="":
|
||||||
|
continue
|
||||||
|
pending.add(pcaveid)
|
||||||
|
|
||||||
with transaction.atomic():
|
with transaction.atomic():
|
||||||
print(" - Deleting Caves and Entrances")
|
print(" - Deleting Caves and Entrances")
|
||||||
|
|||||||
Reference in New Issue
Block a user