fix linting, update doc string

This commit is contained in:
simon 2021-12-16 12:48:12 +07:00
parent 9a2dead76c
commit e858bba944
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -2,6 +2,7 @@
Functionality: Functionality:
- handele the download queue - handele the download queue
- manage subscriptions to channels - manage subscriptions to channels
- manage subscriptions to playlists
- downloading videos - downloading videos
""" """
@ -786,7 +787,7 @@ class VideoDownloader:
now_lte = now - autodelete_days * 24 * 60 * 60 now_lte = now - autodelete_days * 24 * 60 * 60
data = { data = {
"query": {"range": {"player.watched_date": {"lte": now_lte}}}, "query": {"range": {"player.watched_date": {"lte": now_lte}}},
"sort": [{"player.watched_date": {"order": "asc"}}] "sort": [{"player.watched_date": {"order": "asc"}}],
} }
all_to_delete = IndexPaginate("ta_video", data).get_results() all_to_delete = IndexPaginate("ta_video", data).get_results()