Show download date and watch status on Admin rows
All checks were successful
Deploy / deploy (push) Successful in 33s

Surfaces the download-age cutoff data (already computed for the 6-month
filter) directly on each row, plus an explicit "Never watched" label, so
the never-watched call behind the delete button is visible rather than
just trusted.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LPJxtE9tPURsaWDZ6rC4Dt
This commit is contained in:
Barely Removable 2026-09-05 09:38:53 -07:00
parent cad4cd0a84
commit 6d093a25d7
2 changed files with 2 additions and 1 deletions

1
app.py
View file

@ -846,6 +846,7 @@ def get_admin_unwatched_shows(limit=10, months=ADMIN_UNWATCHED_MONTHS):
"year": s.get("year", ""), "year": s.get("year", ""),
"size": size, "size": size,
"ep_count": stats.get("episodeFileCount", 0), "ep_count": stats.get("episodeFileCount", 0),
"added": added,
}) })
never.sort(key=lambda x: x["size"], reverse=True) never.sort(key=lambda x: x["size"], reverse=True)

View file

@ -186,7 +186,7 @@
<span class="tt-row-name">{{ show.ep_count }} EP</span> <span class="tt-row-name">{{ show.ep_count }} EP</span>
<span class="tt-row-body"> <span class="tt-row-body">
<span class="tt-row-title">{{ show.title }}</span> <span class="tt-row-title">{{ show.title }}</span>
{% if show.year %}<span class="tt-row-sub">{{ show.year }}</span>{% endif %} <span class="tt-row-sub">{% if show.year %}{{ show.year }} &middot; {% endif %}Downloaded {{ show.added[:10] if show.added else 'unknown' }} &middot; Never watched</span>
</span> </span>
<span class="tt-row-val">{{ show.size_display }}</span> <span class="tt-row-val">{{ show.size_display }}</span>
<span class="tt-row-acts"> <span class="tt-row-acts">