From 0694a712918495a0a4265e0564678bf8ceb3bb8d Mon Sep 17 00:00:00 2001 From: TTalex Date: Wed, 23 Aug 2023 16:22:26 +0200 Subject: [PATCH] Added data.cleaned_section on analysis db Used by segment_trip_time page on op-admin-dashboard --- emission/core/get_database.py | 1 + 1 file changed, 1 insertion(+) diff --git a/emission/core/get_database.py b/emission/core/get_database.py index 291c03303..0939b41d9 100644 --- a/emission/core/get_database.py +++ b/emission/core/get_database.py @@ -260,6 +260,7 @@ def _create_analysis_result_indices(tscoll): tscoll.create_index([("data.duration", pymongo.DESCENDING)], sparse=True) tscoll.create_index([("data.mode", pymongo.ASCENDING)], sparse=True) tscoll.create_index([("data.section", pymongo.ASCENDING)], sparse=True) + tscoll.create_index([("data.cleaned_section", pymongo.ASCENDING)], sparse=True) # recreated location tscoll.create_index([("data.ts", pymongo.DESCENDING)], sparse=True)