fix bug for wallet with empty fpath

This commit is contained in:
Philip Sargent
2022-10-03 21:18:35 +03:00
parent 4495be2083
commit c8163ab0cd
3 changed files with 22 additions and 13 deletions

View File

@@ -85,15 +85,15 @@
{% if wallets %}<u>Wallets</u> on this date:<br>
<span style="font-size: 70%; ">
{% for item in wallets %}
&nbsp;&nbsp;&nbsp;&nbsp;<a href="/survey_scans/{{item.walletname|urlencode}}/">{{item.walletname|safe}}</a>
{% if item.name %}
{{item.name|safe}} <br/>
{% else %}
{{item.get_fnames|safe}}
<br/>
{% endif %}
&nbsp;&nbsp;&nbsp;&nbsp;<a href="/survey_scans/{{item.walletname|urlencode}}/">{{item.walletname|safe}}</a>
{% if item.name %}
{{item.name|safe}} <br/>
{% else %}
{{item.get_fnames|safe}}
<br/>
{% endif %}
{% empty %}
<em>None found for this date.</em><br>
<em>None found for this date.</em><br>
{% endfor %}
</span>
{% else %}