From 4043b2f57a528d31300c9d26ac7e2b23674e0218 Mon Sep 17 00:00:00 2001 From: Felipe Rosa Date: Wed, 6 Sep 2023 09:55:10 -0300 Subject: [PATCH] chore: undo reviews importer changes --- .../ideascale_importer/reviews_importer/processing/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utilities/ideascale-importer/ideascale_importer/reviews_importer/processing/utils.py b/utilities/ideascale-importer/ideascale_importer/reviews_importer/processing/utils.py index 151406ed65..e2bb7e5307 100644 --- a/utilities/ideascale-importer/ideascale_importer/reviews_importer/processing/utils.py +++ b/utilities/ideascale-importer/ideascale_importer/reviews_importer/processing/utils.py @@ -74,7 +74,7 @@ def deserialize_and_save_csv(path: str, elements: List[Any], include: dict, tran results.append(_res) save_csv(path, results) - + def save_csv(path: str, elements: List[Any]): keys = elements[0].keys() @@ -171,7 +171,7 @@ def __init__(self): def request_start(self, req_id: int, method: str, url: str): """Register the start of a request.""" logger.info("Request started", req_id=req_id, method=method, url=url) - self.inflight_requests[req_id] = RequestProgressInfo(method=method, url=url, bytes_received=0, last_update=datetime.now()) + self.inflight_requests[req_id] = RequestProgressInfo(method, url, 0, datetime.now()) def request_progress(self, req_id: int, bytes_received: int): """Register the progress of a request.""" @@ -267,4 +267,4 @@ class GetFailed(Exception): def __init__(self, status, reason, content): """Initialize a new instance of GetFailed.""" - super().__init__(f"{status} {reason}\n{content})") + super().__init__(f"{status} {reason}\n{content})") \ No newline at end of file