NR: I really hate SOAP. Don't break if you don't have a LDBSVWS query
This commit is contained in:
parent
f9e773fc69
commit
7e19fbe047
1 changed files with 1 additions and 0 deletions
|
@ -278,6 +278,7 @@ class Module(object):
|
||||||
if query:
|
if query:
|
||||||
query = client.service.GetServiceDetailsByRID(rid)
|
query = client.service.GetServiceDetailsByRID(rid)
|
||||||
if schedule:
|
if schedule:
|
||||||
|
if not query: query = {}
|
||||||
for k,v in {
|
for k,v in {
|
||||||
"trainid": schedule["schedule_segment"]["signalling_id"],
|
"trainid": schedule["schedule_segment"]["signalling_id"],
|
||||||
"operatorCode": schedule["atoc_code"],
|
"operatorCode": schedule["atoc_code"],
|
||||||
|
|
Loading…
Reference in a new issue