Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Commit fb7f4fe

Browse files
authored
Update login.py
1 parent 37aed8f commit fb7f4fe

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Help_functions/login.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,14 @@ async def double_click(server, queue=""):
174174
region = tree.xpath('//div[1]//div[2]//div[5]//div[1]//div//div[1]//div//div[4]//a/@href')[0].split("=")[1]
175175
payload = {'countryId': int(int(region) / 6) + (int(region) % 6 > 0), 'regionId': region,
176176
'ticketQuality': 5}
177+
await get_content(URL + "travel.html", data=payload)
177178
except:
178179
return print("I couldn't find in which region your work is. Maybe you don't have a job")
179-
await get_content(URL + "travel.html", data=payload)
180+
180181
await get_content(URL + "train/ajax", data={"action": "train"})
181182
print("Trained successfully at", server)
182-
tree = await get_content(URL + "work/ajax", data={"action": "work"}, return_url=True)
183-
if not tree.xpath('//*[@id="taskButtonWork"]//@href'):
183+
Tree = await get_content(URL + "work/ajax", data={"action": "work"}, return_url=True)
184+
if not Tree.xpath('//*[@id="taskButtonWork"]//@href'):
184185
print("Worked successfully at", server)
185186
else:
186187
print("Couldn't work")

0 commit comments

Comments
 (0)