Fix odd error in connection worker
This commit is contained in:
parent
eb4fc0fa27
commit
4b5a4516ae
1 changed files with 2 additions and 2 deletions
|
@ -21,8 +21,8 @@ def getService(sid, lines, q, eq = None):
|
||||||
depdate = dep.find("td", { "class": "date" }).string.strip() or None
|
depdate = dep.find("td", { "class": "date" }).string.strip() or None
|
||||||
deptime = dep.find("td", { "class": "timeValue" }).find("span").string.split()[1].strip()
|
deptime = dep.find("td", { "class": "timeValue" }).find("span").string.split()[1].strip()
|
||||||
|
|
||||||
depprog = (dep.find("span", { "class": "prognosis" }).find("span") or dep.find("span", { "class": "prognosis" })).string.strip() or None
|
depprog = dep.find("span", { "class": "prognosis" }).find("span").string.strip() if dep.find("span", { "class": "prognosis" }).find("span") else None
|
||||||
depplat = (dep.find("td", { "class": "platform" }).find("span") or dep.find("td", { "class": "platform" })).string.strip() or None
|
depplat = dep.find("td", { "class": "platform" }).find("span").string.strip() if dep.find("td", { "class": "platform" }).find("span") else None
|
||||||
|
|
||||||
walk = dep.find("img", { "class": "product" }).get("src") == "/img/vs_oebb/fuss_pic.gif"
|
walk = dep.find("img", { "class": "product" }).get("src") == "/img/vs_oebb/fuss_pic.gif"
|
||||||
name = dep.find("img", { "class": "product" }).get("alt") if not walk else "Walk"
|
name = dep.find("img", { "class": "product" }).get("alt") if not walk else "Walk"
|
||||||
|
|
Loading…
Reference in a new issue