From 85cb2a39e5333462098f587eccb32e0b13996517 Mon Sep 17 00:00:00 2001 From: A Noor <100anonyo@gmail.com> Date: Tue, 30 Apr 2024 20:32:44 +0000 Subject: [PATCH] response fix --- routers/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/utils.py b/routers/utils.py index c4e4858..9bfc815 100644 --- a/routers/utils.py +++ b/routers/utils.py @@ -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)):