Quality - run black on api/sequence directory

This commit is contained in:
bosonprojets
2022-09-09 02:25:20 +01:00
parent 4689cc858a
commit 87f0475b99
25 changed files with 477 additions and 150 deletions
@@ -25,12 +25,17 @@ class Usecase:
self.settings[key] = value
def execute(self):
recurrence = self.file.createIfcRecurrencePattern(self.settings["recurrence_type"])
recurrence = self.file.createIfcRecurrencePattern(
self.settings["recurrence_type"]
)
if self.settings["parent"].is_a("IfcWorkTime"):
if (
self.settings["parent"].RecurrencePattern
and len(self.file.get_inverse(self.settings["parent"].RecurrencePattern)) == 1
and len(
self.file.get_inverse(self.settings["parent"].RecurrencePattern)
)
== 1
):
self.file.remove(self.settings["parent"].RecurrencePattern)
self.settings["parent"].RecurrencePattern = recurrence