Skip to content

Commit

Permalink
Cleanup unused keys from disk info for Windows OS
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed Jan 2, 2025
1 parent 045dd92 commit 818b5a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyarchitecture/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from pyarchitecture import cpu, disks, gpu, memory

version = "0.1.0a4"
version = "0.1.0a5"


def all_components() -> Dict[str, Any]:
Expand Down
8 changes: 5 additions & 3 deletions pyarchitecture/disks/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ def reformat_windows(data: Dict[str, str | int | float]) -> Dict[str, str]:
data["name"] = data["Model"]
data["device_id"] = data["DeviceID"].replace("\\", "").replace(".", "")
data["size"] = squire.size_converter(data["Size"])
del data["Caption"]
del data["Model"]
del data["DeviceID"]
data.pop("Caption", None)
data.pop("Model", None)
data.pop("DeviceID", None)
data.pop("Partitions", None)
data.pop("Size", None)
return data


Expand Down

0 comments on commit 818b5a3

Please sign in to comment.