mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-30 12:09:51 +00:00
fix issue adding classification failing to use a None value for the date
This commit is contained in:
@@ -110,7 +110,9 @@ class Usecase:
|
|||||||
"IfcCalendarDate", **ifcopenshell.util.date.datetime2ifc(edition_date, "IfcCalendarDate")
|
"IfcCalendarDate", **ifcopenshell.util.date.datetime2ifc(edition_date, "IfcCalendarDate")
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
result.EditionDate = ifcopenshell.util.date.datetime2ifc(edition_date, "IfcDate")
|
if edition_date:
|
||||||
|
edition_date = ifcopenshell.util.date.datetime2ifc(edition_date, "IfcDate")
|
||||||
|
result.EditionDate = edition_date
|
||||||
|
|
||||||
self.relate_to_project(result)
|
self.relate_to_project(result)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user