Compare commits

..

1 Commits

Author SHA1 Message Date
Ventilaar
5530179558 Small fixup
All checks were successful
Update worker server / build-and-publish (release) Successful in 11s
Generate docker image / build-and-publish (release) Successful in 20s
2025-01-18 23:39:32 +01:00
3 changed files with 4 additions and 7 deletions

View File

@@ -209,12 +209,9 @@ def queue():
get_nosql().queue_emptyQueue()
flash(f'Queue has been emptied')
elif task == 'run-download':
get_nosql().queue_emptyQueue()
flash(f'Queue has been emptied')
elif task == 'queue-run-once':
video_queue.delay()
task = video_queue.delay()
flash(f'Task has been started on the oldest queued item: {task.id}')
return redirect(url_for('admin.queue'))

View File

@@ -436,7 +436,7 @@ class Mango:
queueItem = self.download_queue.find_one({})
if not queueItem:
return None
elif self.check_exists(self, queueItem['id']):
elif self.check_exists(queueItem['id']):
self.queue_deleteQueue(queueItem['id'])
return queueItem

View File

@@ -155,7 +155,7 @@
</form>
<form method="post">
<input type="text" value="{{ id.get('id') }}" name="value" hidden>
<button class="btn-small waves-effect waves-light" type="submit" name="task" value="run-download" title="Run download task" disabled}>⏩</button>
<button class="btn-small waves-effect waves-light" type="submit" name="task" value="run-download" title="Run download task" disabled>⏩</button>
<!-- This function fill not work until the download queue and video download process is rewritten -->
</form>
</td>