Skip to content

Commit

Permalink
tracking now picked up properly
Browse files Browse the repository at this point in the history
  • Loading branch information
womullan committed Mar 28, 2024
1 parent cd818df commit 50fe08f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/pmcs/202403-ME.xls
Git LFS file not shown
5 changes: 4 additions & 1 deletion milestones/celeb.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,10 @@ def generate_doc(args, milestones):
get_pmcs_path_months(args.pmcs_data, months), args.local_data
)

milestones = [ms for ms in milestones if ms.milestone_tracking]
for m in milestones:
if m.milestone_tracking == "Y":
print(f"Track='{m.milestone_tracking}'", m.code, m.name, m.completed)
milestones = [ms for ms in milestones if ms.milestone_tracking == "Y"]

milestones = sorted(milestones, key=lambda ms: ms.fdue)

Expand Down
6 changes: 6 additions & 0 deletions milestones/excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ def extract_task_details(task_sheet, load_tasks):
celebrate = fetcher(
"actv_code_celebratory_achievements_id", task_sheet.row(rownum)
)
milestone_tracking = ""
if "actv_code_milestone_tracking_id" in fetcher._hdr:
milestone_tracking = fetcher(
"actv_code_milestone_tracking_id", task_sheet.row(rownum)
)
summarychart = fetcher("actv_code_summary_chart_id", task_sheet.row(rownum))

milestones.append(
Expand All @@ -146,6 +151,7 @@ def extract_task_details(task_sheet, load_tasks):
start,
completed,
celebrate,
milestone_tracking,
summarychart,
)
)
Expand Down

0 comments on commit 50fe08f

Please sign in to comment.