fix {'part_id': ['This field may not be null.']} error (#78)

This commit is contained in:
Solvik 2019-09-11 14:22:32 +02:00 committed by GitHub
parent 8c25ab483d
commit 458d1f83c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,7 +125,7 @@ class LSHW():
d["description"] = dimm.get("description")
d["id"] = dimm.get("id")
d["serial"] = dimm.get("serial", 'N/A')
d["vendor"] = dimm.get("vendor")
d["vendor"] = dimm.get("vendor", 'N/A')
d["product"] = dimm.get("product")
d["size"] = dimm.get("size", 0) / 2 ** 20 / 1024