semaphoreui-client 0.1.11__tar.gz → 0.1.13__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: semaphoreui-client
3
- Version: 0.1.11
3
+ Version: 0.1.13
4
4
  Summary: An api client for interacting with Semaphore UI
5
5
  Project-URL: Documentation, https://github.com/rockstar/semaphoreui-client#readme
6
6
  Project-URL: Issues, https://github.com/rockstar/semaphoreui-client/issues
@@ -0,0 +1 @@
1
+ __version__ = "0.1.13"
@@ -392,9 +392,9 @@ class SemaphoreUIClient:
392
392
  assert response.status_code == 200
393
393
  templates: typing.List["Template"] = []
394
394
  for template in response.json():
395
- if template.last_task is not None:
396
- template.last_task = Task(**template.last_task, client=self)
397
- template.append(templates)
395
+ if template["last_task"] is not None:
396
+ template["last_task"] = Task(**template["last_task"], client=self)
397
+ templates.append(template)
398
398
  return templates
399
399
 
400
400
  def create_project_template(
@@ -1 +0,0 @@
1
- __version__ = "0.1.11"