Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
response fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leftmove committed Apr 30, 2024
1 parent a436a97 commit 85cb2a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_confirm_token(response):

def save_response_content(response, destination, chunk_size):
with open(destination, "wb") as f:
size = int(response.headers["Content-Length"] + 10**6) / (10**6)
size = int(response.headers["Content-Length"]) / (10**6)
mb_chunk = chunk_size / (10**6)
progress = tqdm(total=size, desc="Downloading Database", unit="mb")
for i, chunk in enumerate(response.iter_content(chunk_size)):
Expand Down

0 comments on commit 85cb2a3

Please sign in to comment.