Skip to content

Commit

Permalink
chore: undo reviews importer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipeRosa committed Sep 6, 2023
1 parent bbebade commit 4043b2f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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."""
Expand Down Expand Up @@ -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})")

0 comments on commit 4043b2f

Please sign in to comment.