Skip to content

Commit

Permalink
bump to version 0.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jjCode01 committed Jul 4, 2024
1 parent 2cb2e1b commit 81102ed
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@

# Changelog - xerparser

## 0.12.2
## 0.12.2 - 2024-07-04

* Added `tasks` (list[`TASK`]) attribute to `PROJWBS` class.
* Added `task_rsrcs` (list[`TASKRSRC`]) attribute to `RSRC` class.

---

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "xerparser"
version = "0.12.1"
version = "0.12.2"
description = "Parse a P6 .xer file to a Python object."
authors = ["Jesse <[email protected]>"]
license = "GPL-3.0-only"
Expand Down
2 changes: 1 addition & 1 deletion xerparser/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.12.1"
__version__ = "0.12.2"

from xerparser.schemas.actvcode import ACTVCODE # noqa: F401
from xerparser.schemas.actvtype import ACTVTYPE # noqa: F401
Expand Down
2 changes: 1 addition & 1 deletion xerparser/src/xer.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ def _set_rsrc_rates(self, **kwargs) -> RSRCRATE:
def _set_task(self, **kwargs) -> TASK:
calendar = self.calendars[kwargs["clndr_id"]]
wbs = self.wbs_nodes[kwargs["wbs_id"]]
wbs.assignments += 1
task = TASK(calendar=calendar, wbs=wbs, **kwargs)
wbs.tasks.append(task)
self.projects[task.proj_id].tasks.append(task)
Expand All @@ -254,6 +253,7 @@ def _set_taskrsrc(self, **kwargs) -> None:
task = self.tasks[kwargs["task_id"]]
proj = self.projects[kwargs["proj_id"]]
taskrsrc = TASKRSRC(resource=rsrc, account=account, **kwargs)
rsrc.task_rsrcs.append(taskrsrc)
task.resources.update({taskrsrc.uid: taskrsrc})
proj.resources.append(taskrsrc)

Expand Down

0 comments on commit 81102ed

Please sign in to comment.