Skip to content
This repository was archived by the owner on Apr 7, 2019. It is now read-only.

Commit cf47dae

Browse files
authored
update show
1 parent 4551c65 commit cf47dae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

update.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ def startTask(self, type):
6969
:return:
7070
"""
7171
temp = self.ut.requestString(self.username, self.password, self.uhash, "vh_addUpdate.php", utype=type)
72+
j = json.loads(temp)
7273
if "result" in temp:
73-
return temp.split('result":"')[1].split('"')[0]
74-
return "2"
74+
return temp.split('result":"')[1].split('"')[0], j[j['type']]
75+
return "2", False
7576

7677
def fillWithTask(self, type):
7778
"""

0 commit comments

Comments
 (0)