mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-11 18:39:30 +00:00
chore(block devices): edit comment to be more correct
This commit is contained in:
parent
6340ad348c
commit
faa4402030
|
@ -54,8 +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"]
|
||||||
# lsblk gives us json with strings. Awkwardly.
|
# TODO: maybe parse it as numbers, as in origin?
|
||||||
# TODO: maybe parse it more fully?
|
|
||||||
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