diff --git a/api/chalicelib/core/assist.py b/api/chalicelib/core/assist.py index 4d1b7f636..dd69bdbf1 100644 --- a/api/chalicelib/core/assist.py +++ b/api/chalicelib/core/assist.py @@ -268,23 +268,23 @@ def session_exists(project_id, session_id): def __change_keys(key): return { - "PAGETITLE": schemas.LiveFilterType.page_title, + "PAGETITLE": schemas.LiveFilterType.page_title.value, "ACTIVE": "active", "LIVE": "live", - "SESSIONID": schemas.LiveFilterType.session_id, - "METADATA": schemas.LiveFilterType.metadata, - "USERID": schemas.LiveFilterType.user_id, - "USERUUID": schemas.LiveFilterType.user_UUID, + "SESSIONID": schemas.LiveFilterType.session_id.value, + "METADATA": schemas.LiveFilterType.metadata.value, + "USERID": schemas.LiveFilterType.user_id.value, + "USERUUID": schemas.LiveFilterType.user_UUID.value, "PROJECTKEY": "projectKey", - "REVID": schemas.LiveFilterType.rev_id, + "REVID": schemas.LiveFilterType.rev_id.value, "TIMESTAMP": "timestamp", - "TRACKERVERSION": schemas.LiveFilterType.tracker_version, + "TRACKERVERSION": schemas.LiveFilterType.tracker_version.value, "ISSNIPPET": "isSnippet", - "USEROS": schemas.LiveFilterType.user_os, - "USERBROWSER": schemas.LiveFilterType.user_browser, - "USERBROWSERVERSION": schemas.LiveFilterType.user_browser_version, - "USERDEVICE": schemas.LiveFilterType.user_device, - "USERDEVICETYPE": schemas.LiveFilterType.user_device_type, - "USERCOUNTRY": schemas.LiveFilterType.user_country, + "USEROS": schemas.LiveFilterType.user_os.value, + "USERBROWSER": schemas.LiveFilterType.user_browser.value, + "USERBROWSERVERSION": schemas.LiveFilterType.user_browser_version.value, + "USERDEVICE": schemas.LiveFilterType.user_device.value, + "USERDEVICETYPE": schemas.LiveFilterType.user_device_type.value, + "USERCOUNTRY": schemas.LiveFilterType.user_country.value, "PROJECTID": "projectId" }.get(key.upper(), key)