mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-06 21:55:41 +08:00
@@ -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