mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 16:31:10 +00:00
updated restriction types
This commit is contained in:
@@ -998,7 +998,8 @@ class Restriction:
|
|||||||
for constraint, value in self.options.items():
|
for constraint, value in self.options.items():
|
||||||
value = [value] if not isinstance(value, list) else value
|
value = [value] if not isinstance(value, list) else value
|
||||||
for v in 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}
|
value_dict = {"@value": v}
|
||||||
else:
|
else:
|
||||||
value_dict = {"@value": str(v)}
|
value_dict = {"@value": str(v)}
|
||||||
|
|||||||
Reference in New Issue
Block a user