Skip to content

Commit

Permalink
Fix a condition that determined the charge plots to show discontinuit…
Browse files Browse the repository at this point in the history
…ies at the interface between items
  • Loading branch information
danieleTrimarchi committed Jan 3, 2025
1 parent e6a909c commit e3e0050
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/chargedPlanner/chargedPlanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def getCalendarWorkload(
calendarWorkLoad = {}
for iDay in workdays:
for feat, purcentage in self.__chargedWorkItems__.items():
if iDay > feat.getStartDate() and iDay < feat.getEndDate():
if iDay >= feat.getStartDate() and iDay <= feat.getEndDate():
if iDay not in calendarWorkLoad:
calendarWorkLoad[iDay] = {}
calendarWorkLoad[iDay][feat] = purcentage
Expand Down
6 changes: 6 additions & 0 deletions tests/test_chargedPlanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ def test_dev_gantt() :
percentageLoad=80,
startDate=datetime(2024,12,26).date())

refactor = Feature(featName="Refactor",
remainingEffort=10,
assignee=dev,
percentageLoad=20,
startDate = dev.getEndDateForLatestAssignedFeat())

seedMapFeat = Feature(featName="SeedMap",
remainingEffort=10,
assignee=dev,
Expand Down

0 comments on commit e3e0050

Please sign in to comment.