mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
added validation that current timer was found
This commit is contained in:
parent
1f1c4a1dd1
commit
160933e866
1 changed files with 3 additions and 0 deletions
|
|
@ -304,6 +304,9 @@ class ClockifyAPI(metaclass=Singleton):
|
|||
if workspace_id is None:
|
||||
workspace_id = self.workspace_id
|
||||
current = self.get_in_progress(workspace_id)
|
||||
if current is None:
|
||||
return
|
||||
|
||||
current_id = current["id"]
|
||||
action_url = 'workspaces/{}/timeEntries/{}'.format(
|
||||
workspace_id, current_id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue