Skip to content

Commit 2ad2de6

Browse files
authored
v0.4.2
Fix use of undeclared attribute
2 parents 4319935 + 3e44030 commit 2ad2de6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

forecast/models/projects.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,10 @@ def __init__(self,
206206
_project_id: int,
207207
raw: Optional[Dict[str, Any]] = None):
208208
super(Phase, self).__init__(_forecast, _id, raw)
209+
self._project_id = _project_id
209210
self.path = API_PATH['milestone_id'].format(
210211
project_id=object.__getattribute__(self, '_project_id'),
211212
milestone_id=object.__getattribute__(self, '_id'))
212-
self._project_id = _project_id
213213

214214
@property
215215
def project(self) -> 'forecast.models.Project':
@@ -252,10 +252,10 @@ def __init__(self,
252252
_project_id: int,
253253
raw: Optional[Dict[str, Any]] = None):
254254
super(WorkflowColumn, self).__init__(_forecast, _id, raw)
255+
self._project_id = _project_id
255256
self.path = API_PATH['workflow_id'].format(
256257
project_id=object.__getattribute__(self, '_project_id'),
257258
column_id=object.__getattribute__(self, '_id'))
258-
self._project_id = _project_id
259259

260260
@property
261261
def name(self) -> str:

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "forecast"
3-
version = "0.4.1"
3+
version = "0.4.2"
44
description = "Python wrapper for the Forecast.app API."
55
authors = ["Joe Joiner <[email protected]>"]
66

0 commit comments

Comments
 (0)