Compare commits

...

2 Commits

Author SHA1 Message Date
Jonathon Broughton 2ba1c5dd52 Update rule_processor.py 2025-06-05 15:28:51 +01:00
Jonathon Broughton 6032306cc2 Update rule_processor.py (#66)
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
2025-06-05 15:23:23 +01:00
+4 -1
View File
@@ -335,9 +335,12 @@ def apply_rules_to_objects(
):
speckle_print(f"Rule {rule_id_str} Skipped")
newBase = Base()
newBase.id = "123"
automate_context.attach_info_to_objects(
category=f"Rule {rule_id_str} Skipped",
object_ids=[Base()],
affected_objects=[newBase],
# This is a hack to get a rule to report with no valid objects
message=f"No objects found for rule {rule_id_str}",
metadata={},