mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-12-22 18:00:17 +00:00
clean exit of progress builder when no videos in channel
This commit is contained in:
parent
b98ccd9dab
commit
36a2996cda
@ -172,7 +172,7 @@ 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:
|
||||
if not results or not self.context["results"]:
|
||||
return
|
||||
|
||||
progress = {i["youtube_id"]: i["position"] for i in results}
|
||||
|
Loading…
Reference in New Issue
Block a user