1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-13 21:52:18 +00:00

Storm: use .count() instead of length filter

This commit is contained in:
Andre-Nam 2014-10-22 21:03:05 +02:00
parent dd79c4d750
commit 76f23a5f01

View File

@ -28,7 +28,7 @@
{% for p in mine %} {% for p in mine %}
<tr> <tr>
<td><a href="{{ url_for('playlist_details', uid = p.id) }}">{{ p.name }}</a></td> <td><a href="{{ url_for('playlist_details', uid = p.id) }}">{{ p.name }}</a></td>
<td>{{ p.tracks|length }}</td> <td>{{ p.tracks.count() }}</td>
<td><input type="checkbox" disabled="true" {% if p.public %}checked="true"{% endif %} /></td> <td><input type="checkbox" disabled="true" {% if p.public %}checked="true"{% endif %} /></td>
<td><a href="{{ url_for('playlist_delete', uid = p.id) }}">X</a></td> <td><a href="{{ url_for('playlist_delete', uid = p.id) }}">X</a></td>
</tr> </tr>