From 43cfd788f311e611c2884b27fdcdbcf2ce70b2322dc098483a2127d4e7cc3c0e Mon Sep 17 00:00:00 2001 From: PioApocalypse Date: Thu, 12 Feb 2026 23:53:21 +0100 Subject: [PATCH] adds non-req. attr. "description" to class Target --- src/classes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/classes.py b/src/classes.py index 642c3f1..be30eab 100644 --- a/src/classes.py +++ b/src/classes.py @@ -157,6 +157,8 @@ class Target(Material): self.manufacturer = self.extra["Supplier"]["value"] except KeyError as k: raise KeyError(f"The provided dictionary lacks a \"{k}\" key - which is specific for PLD targets. Check the {self.name} target entry on eLabFTW and make sure you used the correct Resource template.") + # Non-required attributes: + self.description = material_data.get("body") or ""