mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-26 14:01:30 +00:00
fix: encoding
This commit is contained in:
parent
79ef4c9310
commit
3d4caaf4ce
|
@ -52,6 +52,8 @@ def stream_process(
|
||||||
completed_packages = 0
|
completed_packages = 0
|
||||||
|
|
||||||
for line in stream:
|
for line in stream:
|
||||||
|
line = line.decode("utf-8")
|
||||||
|
|
||||||
if "deleting '/nix/store/" in line:
|
if "deleting '/nix/store/" in line:
|
||||||
completed_packages += 1
|
completed_packages += 1
|
||||||
percent = int((completed_packages / total_dead_packages) * 100)
|
percent = int((completed_packages / total_dead_packages) * 100)
|
||||||
|
|
Loading…
Reference in a new issue