Fix variable name

This commit is contained in:
Klaus-Uwe Mitterer 2017-09-21 23:02:42 +02:00
parent 494dc01554
commit 0d27297eb3

View file

@ -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, "&timesel=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, "&timesel=arrive" if mode else "")
source = requests.get(url).text
if "GO_conViewMode=outward" not in source: