mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 14:49:25 +00:00
Mark caves with no survex files
This commit is contained in:
@@ -224,7 +224,7 @@ def do_ARGE_cave(slug, caveid, areacode, svxid):
|
||||
cave.kataster_number=kn # should only set this if all digit
|
||||
except:
|
||||
# must be unofficial 'number' or name
|
||||
cave.unofficial_number=caveid.upper()
|
||||
cave.unofficial_number=caveid
|
||||
|
||||
cave.save()
|
||||
|
||||
@@ -347,7 +347,7 @@ def do_pending_cave(slug, caveid, url, areacode, msg=None):
|
||||
survex_file = get_survex_file(slug)
|
||||
|
||||
cave = Cave(
|
||||
unofficial_number=caveid.upper(),
|
||||
unofficial_number=caveid,
|
||||
underground_description="Pending cave write-up - No cave description created yet.",
|
||||
survex_file=survex_file,
|
||||
url=url,
|
||||
@@ -818,7 +818,7 @@ def readcaves():
|
||||
with open(fpending, "r") as fo:
|
||||
cids = fo.readlines()
|
||||
for cid in cids:
|
||||
pending.add(cid.strip().rstrip("\n").upper())
|
||||
pending.add(cid.strip().rstrip("\n"))
|
||||
|
||||
with transaction.atomic():
|
||||
print(" - Deleting Caves and Entrances")
|
||||
|
||||
Reference in New Issue
Block a user