fix sorting by using proper python printing format str

This commit is contained in:
Damien De Paoli
2020-11-24 21:23:46 +11:00
parent 332335fe03
commit 3a07c109a0

View File

@@ -20,7 +20,7 @@
<a href="/book/{{book.id}}">{{book.title}}</a>
{% endif %}
</td>
<td data-sort="{{series.id}}.{{"%02d".format( SeriesBookNum( series.id, book.id ))}}">
<td data-sort="{{series.id}}.{{"{:02d}".format( SeriesBookNum( series.id, book.id ))}}">
{% for s in book.series %}
{{ SeriesBookNum( s.id, book.id ) }} of <a href="/series/{{s.id}}">{{s.title}}</a><br>
{% endfor %}