mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-23 23:12:04 +08:00
athena: listUploadQueue, check None first
This commit is contained in:
@@ -253,7 +253,7 @@ def uploadFileToUrl(fn, url, headers):
|
||||
@dispatcher.add_method
|
||||
def listUploadQueue():
|
||||
items = list(upload_queue.queue) + list(cur_upload_items.values())
|
||||
return [i._asdict() for i in items if i.id not in cancelled_uploads and i is not None]
|
||||
return [i._asdict() for i in items if (i is not None) and (i.id not in cancelled_uploads)]
|
||||
|
||||
|
||||
@dispatcher.add_method
|
||||
|
||||
Reference in New Issue
Block a user