From c6572bd6f40536ca3cdd1d0566b3adf7208d15c6 Mon Sep 17 00:00:00 2001 From: Evelyn Date: Mon, 4 Dec 2017 18:28:13 +0000 Subject: [PATCH] NR: 0000 if headcode None --- modules/nr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nr.py b/modules/nr.py index 45509c91..3cd26913 100644 --- a/modules/nr.py +++ b/modules/nr.py @@ -348,7 +348,7 @@ class Module(object): query = client.service.GetServiceDetailsByRID(rid) if schedule: sources.append("Eagle/SCHEDULE") - if not query: query = {"trainid": schedule["signalling_id"], "operator": schedule["operator_name"] or schedule["atoc_code"]} + if not query: query = {"trainid": schedule["signalling_id"] or "0000", "operator": schedule["operator_name"] or schedule["atoc_code"]} stype = "class %s %s" % (schedule_query["tops_inferred"], schedule["power_type"]) if schedule_query["tops_inferred"] else schedule["power_type"] for k,v in { "operatorCode": schedule["atoc_code"],