From 358e1439dbba13e45cab524a9e35f824fa5c2f4c Mon Sep 17 00:00:00 2001 From: mmomin-crest Date: Tue, 25 Jun 2024 11:42:46 +0530 Subject: [PATCH] succinct the comments --- servicenow_connector.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servicenow_connector.py b/servicenow_connector.py index 8f4cd71..0872281 100644 --- a/servicenow_connector.py +++ b/servicenow_connector.py @@ -1694,9 +1694,9 @@ def _search_sources_details(self, action_result, sysparm_term, sysparm_search_so response.get("result").get("search_results", [])[i].pop("page") result_length += len(response.get("result").get("search_results", [])[i].get("records", [])) - # In first call I want to get response['result'] and in other calls I am extending records into result - # In first call we are adding total pages that need to iterate. Because, we are getting empty record in result due to ACLs - # Getting default/maximum records from servicenow is 20 in one page + # Initially fetch response['result'] and extend records into it in subsequent calls + # Add total pages to iterate in the first call to handle empty records due to ACLs + # ServiceNow returns up to 20 records per page by default if first_call: items_list.append(response['result']) total_result_count_page_limit = total_item_count // 20