mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 11:50:14 +00:00
return if no in progress videos
This commit is contained in:
parent
df777104af
commit
806448624d
@ -172,6 +172,9 @@ class ArchivistResultsView(ArchivistViewConfig):
|
||||
def match_progress(self):
|
||||
"""add video progress to result context"""
|
||||
results = RedisArchivist().list_items(f"{self.user_id}:progress:")
|
||||
if not results:
|
||||
return
|
||||
|
||||
progress = {i["youtube_id"]: i["position"] for i in results}
|
||||
for hit in self.context["results"]:
|
||||
video = hit["source"]
|
||||
|
Loading…
Reference in New Issue
Block a user