From 47132214f0b88f953ac4e48564a071c26501994b Mon Sep 17 00:00:00 2001 From: alex-christiansen <52046910+alex-christiansen@users.noreply.github.com> Date: Fri, 18 Oct 2024 17:30:44 -0700 Subject: [PATCH] Update fetcher.py Removing the 5k row limit response for the sys activity api calls. Replaced with -1 which will pull back all results thus providing more accurate results. --- henry/modules/fetcher.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/henry/modules/fetcher.py b/henry/modules/fetcher.py index bf6e8de..f8e7d33 100644 --- a/henry/modules/fetcher.py +++ b/henry/modules/fetcher.py @@ -133,7 +133,7 @@ def get_used_models(self) -> Dict[str, int]: "history.query_run_count": ">0", "user.dev_branch_name": "NULL", }, - limit="5000", + limit="-1", ), ) _results: MutableSequence[Dict[str, int]] = json.loads(resp) @@ -187,7 +187,7 @@ def get_used_explores( "query.view": explore, "user.dev_branch_name": "NULL", }, - limit="5000", + limit="-1", ), ) _results: MutableSequence[Dict[str, int]] = json.loads(resp) @@ -241,7 +241,7 @@ def get_used_explore_fields( "query.formatted_fields": "-NULL", "history.workspace_id": "production", }, - limit="5000", + limit="-1", ), ) data = json.loads(resp)