Add operator to timetable documents

This commit is contained in:
Fred Boniface 2023-06-26 15:47:45 +01:00
parent 890379123b
commit 0c2b0dc0a2
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ def insertSchedule(sch_record):
document = {
'transactionType': schedule.get('transaction_type'),
'stpIndicator': schedule.get('CIF_stp_indicator'),
'operator': schedule.get('atoc_code'),
'trainUid': scheduleId,
'headcode': schedule.get('schedule_segment', {}).get('signalling_id'),
'powerType': schedule.get('schedule_segment', {}).get('CIF_power_type'),