From 4d7292bca400304d0261254b7159fca77dc8d410 Mon Sep 17 00:00:00 2001 From: Anuradha Date: Thu, 27 Apr 2023 01:41:04 +0000 Subject: [PATCH] capture granularity from query params --- .../python-modules/python/shared/apiutils/requests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shared_resources/python-modules/python/shared/apiutils/requests.py b/shared_resources/python-modules/python/shared/apiutils/requests.py index e742cd4..68cd79b 100644 --- a/shared_resources/python-modules/python/shared/apiutils/requests.py +++ b/shared_resources/python-modules/python/shared/apiutils/requests.py @@ -155,6 +155,8 @@ def from_request(self, query_params) -> Self: self.query.pagination.limit = int(v) elif k == "includeResultsetResponses": self.query.include_resultset_responses = IncludeResultsetResponses(v) + elif k == "requestedGranularity": + self.query.requested_granularity = Granularity(v) else: req_params_dict[k] = v if len(req_params_dict):