mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-29 15:31:28 +00:00
fix: encoding
This commit is contained in:
parent
79ef4c9310
commit
3d4caaf4ce
|
@ -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…
Reference in a new issue