This commit is contained in:
Dion Moult
2021-07-04 09:54:49 +10:00
parent 85bd616f6e
commit 68b6389794
3 changed files with 73 additions and 53 deletions
@@ -2,12 +2,15 @@
def get_person(ifc):
return ifc.by_type("IfcPerson")[0]
people = ifc.by_type("IfcPerson") or [None]
return people [0]
def get_organisation(ifc):
return ifc.by_type("IfcOrganization")[0]
organisations = ifc.by_type("IfcOrganization") or [None]
return organisations[0]
def get_application(ifc):
return ifc.by_type("IfcApplication")[0]
applications = ifc.by_type("IfcApplication") or [None]
return applications[0]