mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-18 22:27:08 +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
|
cave.kataster_number=kn # should only set this if all digit
|
||||||
except:
|
except:
|
||||||
# must be unofficial 'number' or name
|
# must be unofficial 'number' or name
|
||||||
cave.unofficial_number=caveid.upper()
|
cave.unofficial_number=caveid
|
||||||
|
|
||||||
cave.save()
|
cave.save()
|
||||||
|
|
||||||
@@ -347,7 +347,7 @@ def do_pending_cave(slug, caveid, url, areacode, msg=None):
|
|||||||
survex_file = get_survex_file(slug)
|
survex_file = get_survex_file(slug)
|
||||||
|
|
||||||
cave = Cave(
|
cave = Cave(
|
||||||
unofficial_number=caveid.upper(),
|
unofficial_number=caveid,
|
||||||
underground_description="Pending cave write-up - No cave description created yet.",
|
underground_description="Pending cave write-up - No cave description created yet.",
|
||||||
survex_file=survex_file,
|
survex_file=survex_file,
|
||||||
url=url,
|
url=url,
|
||||||
@@ -818,7 +818,7 @@ 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:
|
||||||
pending.add(cid.strip().rstrip("\n").upper())
|
pending.add(cid.strip().rstrip("\n"))
|
||||||
|
|
||||||
with transaction.atomic():
|
with transaction.atomic():
|
||||||
print(" - Deleting Caves and Entrances")
|
print(" - Deleting Caves and Entrances")
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
<div style="column-count: 3;">
|
<div style="column-count: 3;">
|
||||||
<table class="searchable">
|
<table class="searchable">
|
||||||
{% for cave in caves1626 %}
|
{% 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 %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user