Skip to content

Commit

Permalink
fix: add geodb download success indication
Browse files Browse the repository at this point in the history
Fixes #412
  • Loading branch information
monosans committed Nov 27, 2024
1 parent dbb100b commit dd4a0cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proxy_scraper_checker/geodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ async def _save_geodb(
async for chunk in response.content.iter_any():
await geodb.write(chunk)
progress.advance(task_id=task, advance=len(chunk))
progress.update(task_id=task, successful_count="\N{CHECK MARK}")


async def download_geodb(*, progress: Progress, session: ClientSession) -> None:
Expand All @@ -83,7 +84,7 @@ async def download_geodb(*, progress: Progress, session: ClientSession) -> None:
total=response.content_length,
module="Downloader",
protocol="GeoDB",
successful_count="",
successful_count="\N{HORIZONTAL ELLIPSIS}",
),
)

Expand Down

0 comments on commit dd4a0cb

Please sign in to comment.