mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
updated restriction types
This commit is contained in:
@@ -998,7 +998,8 @@ class Restriction:
|
||||
for constraint, value in self.options.items():
|
||||
value = [value] if not isinstance(value, list) else value
|
||||
for v in value:
|
||||
if constraint in ["length", "minLength", "maxLength"]:
|
||||
if constraint in ["length", "minLength", "maxLength", "maxExclusive", "maxInclusive",
|
||||
"minExclusive", "minInclusive", "totalDigits", "fractionDigits"]:
|
||||
value_dict = {"@value": v}
|
||||
else:
|
||||
value_dict = {"@value": str(v)}
|
||||
|
||||
Reference in New Issue
Block a user