fixed new cloud tasks function call
This commit is contained in:
parent
2a38ed7ead
commit
0fe7d8f117
@ -47,7 +47,7 @@ def update_all_user_playlists():
|
|||||||
|
|
||||||
task['schedule_time'] = timestamp
|
task['schedule_time'] = timestamp
|
||||||
|
|
||||||
tasker.create_task(task_path, task)
|
tasker.create_task(parent=task_path, task=task)
|
||||||
seconds_delay += 30
|
seconds_delay += 30
|
||||||
|
|
||||||
|
|
||||||
@ -111,7 +111,7 @@ def run_user_playlist_task(username: str, playlist_name: str, delay: int = 0):
|
|||||||
# Add the timestamp to the tasks.
|
# Add the timestamp to the tasks.
|
||||||
task['schedule_time'] = timestamp
|
task['schedule_time'] = timestamp
|
||||||
|
|
||||||
tasker.create_task(task_path, task)
|
tasker.create_task(parent=task_path, task=task)
|
||||||
|
|
||||||
|
|
||||||
def refresh_all_user_playlist_stats():
|
def refresh_all_user_playlist_stats():
|
||||||
@ -191,7 +191,7 @@ def refresh_user_stats_task(username: str, delay: int = 0):
|
|||||||
|
|
||||||
task['schedule_time'] = timestamp
|
task['schedule_time'] = timestamp
|
||||||
|
|
||||||
tasker.create_task(task_path, task)
|
tasker.create_task(parent=task_path, task=task)
|
||||||
|
|
||||||
|
|
||||||
def refresh_playlist_task(username: str, playlist_name: str, delay: int = 0):
|
def refresh_playlist_task(username: str, playlist_name: str, delay: int = 0):
|
||||||
@ -252,9 +252,9 @@ def refresh_playlist_task(username: str, playlist_name: str, delay: int = 0):
|
|||||||
|
|
||||||
artist_task['schedule_time'] = timestamp
|
artist_task['schedule_time'] = timestamp
|
||||||
|
|
||||||
tasker.create_task(task_path, track_task)
|
tasker.create_task(parent=task_path, task=track_task)
|
||||||
tasker.create_task(task_path, album_task)
|
tasker.create_task(parent=task_path, task=album_task)
|
||||||
tasker.create_task(task_path, artist_task)
|
tasker.create_task(parent=task_path, task=artist_task)
|
||||||
|
|
||||||
|
|
||||||
def update_all_user_tags():
|
def update_all_user_tags():
|
||||||
@ -287,5 +287,5 @@ def update_all_user_tags():
|
|||||||
|
|
||||||
task['schedule_time'] = timestamp
|
task['schedule_time'] = timestamp
|
||||||
|
|
||||||
tasker.create_task(task_path, task)
|
tasker.create_task(parent=task_path, task=task)
|
||||||
seconds_delay += 10
|
seconds_delay += 10
|
||||||
|
Loading…
Reference in New Issue
Block a user