mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-01-31 07:22:32 +00:00
Mark caves with no survex files
This commit is contained in:
parent
505eb6475e
commit
9aad95bfd0
@ -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")
|
||||
|
@ -52,7 +52,7 @@
|
||||
<div style="column-count: 3;">
|
||||
<table class="searchable">
|
||||
{% for cave in caves1626 %}
|
||||
<tr><td><a href="{{ cave.url }}">{% if cave.kataster_number %}{{ cave.kataster_number }} {{cave.official_name|safe}}</a> {% if cave.unofficial_number %}({{cave.unofficial_number }}){% endif %}{% else %}{{cave.unofficial_number }} {{cave.official_name|safe}}</a> {% endif %} </td></tr>
|
||||
<tr><td><a href="{{ cave.url }}">{% if cave.kataster_number %}{{ cave.kataster_number }} {{cave.official_name|safe}}</a> {% if cave.unofficial_number %}({{cave.unofficial_number }}){% endif %}{% else %}{{cave.unofficial_number }} {{cave.official_name|safe}}</a> {% endif %}{% if cave.survex_file %}{% else %}<span style="color: red">*</span>{% endif %}</td></tr>
|
||||
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
Loading…
Reference in New Issue
Block a user