SIENTIAPDE-1712

Update Gates and FormatAndExportPrediction classes to use 'last_timestamp' for improved data handling

- Modified the Gates class to utilize 'last_timestamp' when only one row is present, ensuring accurate timestamp assignment.
- Updated the FormatAndExportPrediction class to replace 'timestamp' with 'last_timestamp' in the output data structure.
This commit is contained in:
vitor-aignosi
2026-03-25 12:18:27 -03:00
parent 1f5a14be3f
commit 5b4903fffa
2 changed files with 10 additions and 3 deletions

View File

@@ -101,7 +101,7 @@ class FormatAndExportPrediction:
{
**metadata,
'data': data,
'timestamp': input_data['timestamp'],
'last_timestamp': input_data['last_timestamp'],
'model_id': input_data['model_id'],
'prediction_confidence': prediction_confidence,
'prediction_store_policy': input_data['prediction_store_policy'],