Add operator to timetable documents
This commit is contained in:
parent
890379123b
commit
0c2b0dc0a2
@ -124,6 +124,7 @@ def insertSchedule(sch_record):
|
|||||||
document = {
|
document = {
|
||||||
'transactionType': schedule.get('transaction_type'),
|
'transactionType': schedule.get('transaction_type'),
|
||||||
'stpIndicator': schedule.get('CIF_stp_indicator'),
|
'stpIndicator': schedule.get('CIF_stp_indicator'),
|
||||||
|
'operator': schedule.get('atoc_code'),
|
||||||
'trainUid': scheduleId,
|
'trainUid': scheduleId,
|
||||||
'headcode': schedule.get('schedule_segment', {}).get('signalling_id'),
|
'headcode': schedule.get('schedule_segment', {}).get('signalling_id'),
|
||||||
'powerType': schedule.get('schedule_segment', {}).get('CIF_power_type'),
|
'powerType': schedule.get('schedule_segment', {}).get('CIF_power_type'),
|
||||||
|
Reference in New Issue
Block a user