mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-03-21 05:49:47 +00:00
fix: encoding
This commit is contained in:
parent
79ef4c9310
commit
3d4caaf4ce
1 changed files with 2 additions and 0 deletions
|
@ -52,6 +52,8 @@ def stream_process(
|
|||
completed_packages = 0
|
||||
|
||||
for line in stream:
|
||||
line = line.decode("utf-8")
|
||||
|
||||
if "deleting '/nix/store/" in line:
|
||||
completed_packages += 1
|
||||
percent = int((completed_packages / total_dead_packages) * 100)
|
||||
|
|
Loading…
Add table
Reference in a new issue