forked from expo/troggle
cope with bad wallet name
This commit is contained in:
parent
78740a1fc0
commit
9dc1853e10
@ -676,12 +676,15 @@ def scanupload(request, path=None):
|
|||||||
checked[f] = "checked"
|
checked[f] = "checked"
|
||||||
|
|
||||||
survexsize = str(min(len(str(waldata["survex file"])), 46))
|
survexsize = str(min(len(str(waldata["survex file"])), 46))
|
||||||
|
|
||||||
thiswallet = Wallet.objects.get(walletname=wallet)
|
try:
|
||||||
caveifywallet(thiswallet)
|
thiswallet = Wallet.objects.get(walletname=wallet)
|
||||||
thiswallet.ticks = thiswallet.get_ticks() # the complaints in colour form
|
caveifywallet(thiswallet)
|
||||||
#fixsurvextick(thiswallet, thiswallet.ticks)
|
thiswallet.ticks = thiswallet.get_ticks() # the complaints in colour form
|
||||||
print(thiswallet)
|
#fixsurvextick(thiswallet, thiswallet.ticks)
|
||||||
|
print(thiswallet)
|
||||||
|
except:
|
||||||
|
thiswallet = None
|
||||||
context = {'year': year, 'prev': prev, 'next': next, 'prevy': prevy, 'nexty': nexty,
|
context = {'year': year, 'prev': prev, 'next': next, 'prevy': prevy, 'nexty': nexty,
|
||||||
'files': files, 'dirs': dirs, 'waldata': waldata, 'svxfiles': svxfiles,
|
'files': files, 'dirs': dirs, 'waldata': waldata, 'svxfiles': svxfiles,
|
||||||
'checked': checked,
|
'checked': checked,
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
<td style="padding:1px; background-color:{{wallet.ticks.T}}" title="Tunnel or Therion done"> </td>
|
<td style="padding:1px; background-color:{{wallet.ticks.T}}" title="Tunnel or Therion done"> </td>
|
||||||
<td style="padding:1px; background-color:{{wallet.ticks.W}}" title="Website updated"> </td>
|
<td style="padding:1px; background-color:{{wallet.ticks.W}}" title="Website updated"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
{% empty %} <h2>No Wallets for this year</h2>
|
{% empty %} <h2>No Wallet found</h2>
|
||||||
<b>Before 1998</b> we used a survey book system, not wallets. But 1983 has some scraps recreated as wallets.
|
<b>Before 1998</b> we used a survey book system, not wallets. But 1983 has some scraps recreated as wallets.
|
||||||
<p>That is probably why you cannot see anything here. Look at the complete list of scanned files instead,
|
<p>That is probably why you cannot see anything here. Look at the complete list of scanned files instead,
|
||||||
at <a href="/survey_scans/">Scans</a> (it is slow, so be patient).
|
at <a href="/survey_scans/">Scans</a> (it is slow, so be patient).
|
||||||
|
Loading…
Reference in New Issue
Block a user