Skip to content

Commit

Permalink
Merge pull request #165 from log10-io/nqn/last_completion_id
Browse files Browse the repository at this point in the history
ENG-724: Add a function in load.py to return the last_completion_id
  • Loading branch information
nqn authored May 24, 2024
2 parents 27b6a6e + 4af085f commit 403eba8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions log10/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ def last_completion_url(self):
response = last_completion_response_var.get()
return f'{url}/app/{response["organizationSlug"]}/completions/{response["completionID"]}'

def last_completion_id(self):
if last_completion_response_var.get() is None:
return None
response = last_completion_response_var.get()
return response["completionID"]


@contextmanager
def timed_block(block_name):
Expand Down

0 comments on commit 403eba8

Please sign in to comment.