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

Commit

Permalink
Fixed flake8 error of import size being shadowed
Browse files Browse the repository at this point in the history
  • Loading branch information
tygoee committed Nov 20, 2023
1 parent 859b558 commit 3c4f68f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/install/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def download_files(total_size: int, install_path: str, side: Side, manifest: Man
disappear=True
) as bar:
bar: loadingbar[int] # The only way it worked out
for url, fname, size, sides in iterator:
for url, fname, fsize, sides in iterator:
if side not in sides:
# As the size isn't calculated, it
# doesn't have to update the bar
Expand All @@ -229,7 +229,7 @@ def download_files(total_size: int, install_path: str, side: Side, manifest: Man
skipped_files += 1

# Inform it's already installed
bar.update(size)
bar.update(fsize)
bar.set_desc(parse.unquote(path.basename(fname)) +
" is already installed, skipping...")

Expand Down

0 comments on commit 3c4f68f

Please sign in to comment.