mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-10 13:03:11 +00:00
refactor(utils): maybe make fsavail an int?
This commit is contained in:
parent
af014e8b83
commit
f8c6a8b9d6
|
@ -54,6 +54,7 @@ class BlockDevice:
|
||||||
def update_from_dict(self, device_dict: dict):
|
def update_from_dict(self, device_dict: dict):
|
||||||
self.name = device_dict["name"]
|
self.name = device_dict["name"]
|
||||||
self.path = device_dict["path"]
|
self.path = device_dict["path"]
|
||||||
|
# why is it string?
|
||||||
self.fsavail = str(device_dict["fsavail"])
|
self.fsavail = str(device_dict["fsavail"])
|
||||||
self.fssize = str(device_dict["fssize"])
|
self.fssize = str(device_dict["fssize"])
|
||||||
self.fstype = device_dict["fstype"]
|
self.fstype = device_dict["fstype"]
|
||||||
|
|
Loading…
Reference in a new issue