Skip to content

Commit

Permalink
get root object first
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen-de-Bruijn committed Apr 17, 2024
1 parent c57b8c9 commit b1099fe
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ def automate_function(
"""
print("test function 01")

# The context provides a convenient way, to receive the triggering version
version_root_object = automate_context.receive_version()

print("test function 02")

# project = https://latest.speckle.systems/projects/e79a76b289
# model = https://latest.speckle.systems/projects/e79a76b289/models/3b4ec1bbbb/
# version = https://latest.speckle.systems/projects/e79a76b289/models/3b4ec1bbbb%4007dcb5fae8
Expand All @@ -98,10 +103,6 @@ def automate_function(
other_server_transport = ServerTransport(stream_id=project_id, client=the_speckle_client)
other_root_object = operations.receive(other_commit.referencedObject, other_server_transport)

print("test function 02")

# The context provides a convenient way, to receive the triggering version
version_root_object = automate_context.receive_version()
print("test function 03")

# Get all walls so we can check and compare their types
Expand Down

0 comments on commit b1099fe

Please sign in to comment.