added placeholder id for xapian indexing

This commit is contained in:
Thomas Nahuel Rusiecki 2024-11-22 17:52:30 -03:00
parent 0a9368922a
commit dfdc2150d0
1 changed files with 3 additions and 1 deletions

View File

@ -101,6 +101,8 @@ def create_index(doc, user):
if not doc or not doc.get('uuid'): if not doc or not doc.get('uuid'):
return [] return []
_timestamp = doc['endTime']
_uuid = doc['uuid'] _uuid = doc['uuid']
_device_id = doc['CUSTOMER_ID']
ev = json.dumps(doc) ev = json.dumps(doc)
index(user.institution, _uuid, ev) index(user.institution, _device_id, _uuid, _timestamp, ev)