This repository was archived by the owner on Mar 11, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments