Add vstp field

This commit is contained in:
Fred Boniface 2023-07-27 20:16:42 +01:00
parent ec6e425a0d
commit 2662e3e18a

View File

@ -125,6 +125,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'),
'vstp': False,
'operator': schedule.get('atoc_code'), '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'),