sessions / 7d3f615ed7cb0e99a36deea780de52f639635418

/home/powellc/src/code.unbl.ink/secstate/vrobbler

This commit has no recorded session.

diff

ignore whitespace

commit 7d3f615ed7cb0e99a36deea780de52f639635418Author: Colin Powell <colin@unbl.ink>Date:   Mon Jun 15 14:37:20 2026 -0400    [longplay] Make sure they're marked status is correctdiff --git a/vrobbler/apps/scrobbles/models.py b/vrobbler/apps/scrobbles/models.pyindex d9ab2c3..b213515 100644--- a/vrobbler/apps/scrobbles/models.py+++ b/vrobbler/apps/scrobbles/models.py@@ -1504,6 +1504,9 @@ class Scrobble(TimeStampedModel):             if media.calories:                 scrobble_data["log"] = FoodLogData(calories=media.calories).asdict +        if mtype not in LONG_PLAY_MEDIA.values():+            scrobble_data.pop("long_play_complete", None)+         scrobble = cls.create(scrobble_data)          if mtype in LONG_PLAY_MEDIA.values():diff --git a/vrobbler/templates/_longplay_scrobblable_list.html b/vrobbler/templates/_longplay_scrobblable_list.htmlindex 2589376..e6d48fc 100644--- a/vrobbler/templates/_longplay_scrobblable_list.html+++ b/vrobbler/templates/_longplay_scrobblable_list.html@@ -20,7 +20,7 @@             <td><a href="{{obj.get_absolute_url}}">{{obj}}</a></td>             {% if request.user.is_authenticated %}             <td>{{obj.scrobble_count}}</td>-            <td>{% if obj.scrobble_set.last.long_play_complete == True %}Yes{% endif %}</td>+            <td>{% if obj.scrobble_set.last.long_play_complete == True %}Yes{% else %}No{% endif %}</td>             <td><a type="button" class="btn btn-sm btn-primary" href="{{obj.start_url}}">Scrobble</a></td>             <td><a type="button" class="btn btn-sm btn-warning" href="{{obj.get_longplay_finish_url}}">Finish</a></td>             {% endif %}diff --git a/vrobbler/templates/books/book_detail.html b/vrobbler/templates/books/book_detail.htmlindex 560da9c..e725321 100644--- a/vrobbler/templates/books/book_detail.html+++ b/vrobbler/templates/books/book_detail.html@@ -62,7 +62,7 @@                     {% for scrobble in scrobbles.all|dictsortreversed:"timestamp" %}                     <tr>                         <td><a href="{{scrobble.get_absolute_url}}">{{scrobble.local_timestamp}}</a></td>-                        <td>{% if scrobble.long_play_complete == True %}Yes{% endif %}</td>+                        <td>{% if scrobble.long_play_complete == True %}Yes{% else %}No{% endif %}</td>                         <td>{% if scrobble.in_progress %}Now reading{% else %}{{scrobble.session_pages_read}}{% endif %}</td>                         <td>{% for author in scrobble.book.authors.all %}<a href="{{author.get_absolute_url}}">{{author}}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</td>                     </tr>diff --git a/vrobbler/templates/bricksets/brickset_detail.html b/vrobbler/templates/bricksets/brickset_detail.htmlindex 6c3f203..2bdb216 100644--- a/vrobbler/templates/bricksets/brickset_detail.html+++ b/vrobbler/templates/bricksets/brickset_detail.html@@ -45,7 +45,7 @@                     {% for scrobble in scrobbles.all|dictsortreversed:"timestamp" %}                     <tr>                         <td><a href="{{scrobble.get_absolute_url}}">{{scrobble.local_timestamp}}</a></td>-                        <td>{% if scrobble.long_play_complete == True %}Yes{% endif %}</td>+                        <td>{% if scrobble.long_play_complete == True %}Yes{% else %}No{% endif %}</td>                         <td>{% if scrobble.in_progress %}Now reading{% else %}{{scrobble.session_pages_read}}{% endif %}</td>                     </tr>                     {% endfor %}