Fix variable name
This commit is contained in:
parent
494dc01554
commit
0d27297eb3
|
@ -7,7 +7,7 @@ def connRequest(frm, to, count = 3, time = datetime.datetime.now(), mode = False
|
|||
outdate = datetime.datetime.strftime(time,"%d.%m.%Y")
|
||||
outtime = datetime.datetime.strftime(time,"%H:%M")
|
||||
|
||||
url = "http://fahrplan.oebb.at/bin/query.exe/dn?start=1&S=%s&Z=%s&REQ0JourneyDate=%s&time=%s&REQ0HafasNumCons0=%s%s" % (frm.extId if frm.extId else frm.name, to.extid if to.extid else to.name, outdate, outtime, count, "×el=arrive" if mode else "")
|
||||
url = "http://fahrplan.oebb.at/bin/query.exe/dn?start=1&S=%s&Z=%s&REQ0JourneyDate=%s&time=%s&REQ0HafasNumCons0=%s%s" % (frm.extid if frm.extid else frm.name, to.extid if to.extid else to.name, outdate, outtime, count, "×el=arrive" if mode else "")
|
||||
source = requests.get(url).text
|
||||
|
||||
if "GO_conViewMode=outward" not in source:
|
||||
|
|
Loading…
Reference in a new issue