diff --git a/workers/conn.py b/workers/conn.py index f730e89..3277ea5 100644 --- a/workers/conn.py +++ b/workers/conn.py @@ -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: