Merge: header video-count clarity + idle pause hidden
This commit is contained in:
commit
6683720ab8
3 changed files with 18 additions and 3 deletions
|
|
@ -152,6 +152,9 @@ def my_status(
|
|||
),
|
||||
)
|
||||
)
|
||||
# Whole-catalog total (every video any user's subscriptions have pulled in), so the
|
||||
# header can show "yours" against the shared library size.
|
||||
total_videos = db.scalar(select(func.count(Video.id)))
|
||||
return {
|
||||
"channels_total": total,
|
||||
"channels_details_synced": details_synced,
|
||||
|
|
@ -163,6 +166,7 @@ def my_status(
|
|||
"deep_pending_count": deep_eta["channels_pending"],
|
||||
"deep_eta_seconds": deep_eta["eta_seconds"],
|
||||
"my_videos": my_videos or 0,
|
||||
"total_videos": total_videos or 0,
|
||||
"quota_used_today": quota.units_used_today(db),
|
||||
"quota_remaining_today": quota.remaining_today(db),
|
||||
"paused": state.is_sync_paused(db),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue