🔧 chore(GetRequest.py): refactor GetRequest class to store the returned documents in a repr_value attribute for debugging purposes

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-08-22 14:58:52 -03:00
commit 6e18e795ff

View file

@ -67,4 +67,6 @@ class GetRequest(CustomComponent):
headers = {}
if not isinstance(url, list):
url = [url]
return [self.get_document(u, headers) for u in url]
documents = [self.get_document(u, headers) for u in url]
self.repr_value = documents
return documents