From 09c11da1ce6f4df6b5ca5323a5675943332a2f6e Mon Sep 17 00:00:00 2001 From: Mattias Thall Date: Wed, 27 May 2026 03:34:18 +0200 Subject: [PATCH] fix: reduce pending deletion window from 7 days to 2 hours Co-Authored-By: Claude Sonnet 4.6 --- backend/routers/videos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/routers/videos.py b/backend/routers/videos.py index d881ae5..3e8357f 100644 --- a/backend/routers/videos.py +++ b/backend/routers/videos.py @@ -1067,7 +1067,7 @@ def update_progress( user_id=current_user.id, video_id=video_id, status="complete" ).filter(Download.pending_delete_at.is_(None)).first() if dl: - dl.pending_delete_at = datetime.utcnow() + timedelta(days=7) + dl.pending_delete_at = datetime.utcnow() + timedelta(hours=2) elif body.watched and prev_watched: # Rewatch — strongest positive signal uv.rewatch_count = (uv.rewatch_count or 0) + 1 @@ -1092,7 +1092,7 @@ def update_progress( user_id=current_user.id, video_id=video_id, status="complete" ).filter(Download.pending_delete_at.is_(None)).first() if dl: - dl.pending_delete_at = datetime.utcnow() + timedelta(days=7) + dl.pending_delete_at = datetime.utcnow() + timedelta(hours=2) db.commit() return {"ok": True}