bugfix
This commit is contained in:
parent
9b9deecb55
commit
9058f4cfa9
Binary file not shown.
@ -58,7 +58,7 @@ and finish_time is NULL"""
|
||||
d = json.loads(x.decode('utf-8'))
|
||||
return DictObject(**d)
|
||||
|
||||
async download(self, url):
|
||||
async def download(self, url):
|
||||
try:
|
||||
d = await self.uapicall('addUrl', {'url':url})
|
||||
await self.save_task(d.result)
|
||||
@ -70,7 +70,7 @@ and finish_time is NULL"""
|
||||
async def delete_file(self, filename):
|
||||
pass
|
||||
|
||||
async remove_task(self, taskid):
|
||||
async def remove_task(self, taskid):
|
||||
await self.uapicall('remove-task', {'taskid':taskid})
|
||||
return True
|
||||
|
||||
@ -92,7 +92,7 @@ and finish_time is NULL"""
|
||||
rzt.filename = rzt.info.name
|
||||
return rzt
|
||||
|
||||
async get_tasks_status(self):
|
||||
async def get_tasks_status(self):
|
||||
recs = await self.get_user_tasks(userid)
|
||||
urls = [r.id for r in recs]
|
||||
try:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user