Add platform information for laptops

This commit is contained in:
Hoang Hong Quan
2024-08-19 22:36:06 +07:00
parent c67bf4c291
commit b9281737ef

View File

@@ -71,7 +71,7 @@ class AIDA64:
# Extract platform type from chassis information
motherboard_info["Platform"] = dmi.get("Chassis", {}).get("Chassis Properties", {}).get("Chassis Type", "Unknown")
if any(word in motherboard_info["Platform"].lower() for word in ["convertible", "notebook", "laptop", "docking station"]):
if any(word in motherboard_info["Platform"].lower() for word in ["convertible", "notebook", "laptop", "docking station", "portable"]):
motherboard_info["Platform"] = "Laptop"
elif any(word in motherboard_info["Platform"].lower() for word in ["desktop", "mini pc"]):
motherboard_info["Platform"] = "Desktop"