mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-29 10:32:10 +08:00
athena: listUploadQueue, check None first
old-commit-hash: bde568205e5fe930d99fa4a7f16830077e962c15
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