mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-25 16:51:54 +00:00
bug in pending caves parsing
This commit is contained in:
parent
d88ae2f78c
commit
6b94829315
@ -847,8 +847,10 @@ def readcaves():
|
||||
with open(fpending, "r") as fo:
|
||||
cids = fo.readlines()
|
||||
for cid in cids:
|
||||
pcaveid = cid.strip().rstrip("\n")
|
||||
if 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():
|
||||
|
Loading…
Reference in New Issue
Block a user