From dfdc2150d0a4ecb521c30b0b4596c9043a2124d7 Mon Sep 17 00:00:00 2001 From: Thomas Rusiecki Date: Fri, 22 Nov 2024 17:52:30 -0300 Subject: [PATCH] added placeholder id for xapian indexing --- utils/device.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/device.py b/utils/device.py index beaa4b8..76bc56f 100644 --- a/utils/device.py +++ b/utils/device.py @@ -101,6 +101,8 @@ def create_index(doc, user): if not doc or not doc.get('uuid'): return [] + _timestamp = doc['endTime'] _uuid = doc['uuid'] + _device_id = doc['CUSTOMER_ID'] ev = json.dumps(doc) - index(user.institution, _uuid, ev) + index(user.institution, _device_id, _uuid, _timestamp, ev)