diff --git a/data/pmcs/202403-ME.xls b/data/pmcs/202403-ME.xls new file mode 100644 index 0000000..1b7c020 --- /dev/null +++ b/data/pmcs/202403-ME.xls @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5264848773f383ef9def606a293a7c6f30fdf71a0256f9860166d9c00d54d180 +size 6268416 diff --git a/milestones/celeb.py b/milestones/celeb.py index 474c281..d5bbfc1 100644 --- a/milestones/celeb.py +++ b/milestones/celeb.py @@ -286,9 +286,7 @@ def generate_doc(args, milestones): get_pmcs_path_months(args.pmcs_data, months), args.local_data ) - inc = args.inc - - milestones = [ms for ms in milestones if ms.celebrate] + milestones = [ms for ms in milestones if ms.milestone_tracking] milestones = sorted(milestones, key=lambda ms: ms.fdue) @@ -321,8 +319,8 @@ def generate_doc(args, milestones): f"controls system for {p6_date.strftime('%B %Y')}. {compline}" ) - with doc.section("Top milestones") as my_section: - top_milestones = [ms for ms in milestones if ms.celebrate == "Top"] + with doc.section("Key milestones") as my_section: + top_milestones = [ms for ms in milestones if ms.milestone_tracking] write_html(top_milestones, args.pmcs_data, comp_milestones, compline) if args.table: write_table(my_section, top_milestones, comp_milestones) @@ -334,14 +332,6 @@ def generate_doc(args, milestones): "`here <./top_milestones.html>`_." ) - if "Y" == inc: - with doc.section("Supporting milestones") as my_section: - o_milestones = [ms for ms in milestones if ms.celebrate == "Y"] - if args.table: - write_table(my_section, o_milestones, comp_milestones) - else: - write_list(my_section, o_milestones, comp_milestones) - return doc.get_result() diff --git a/milestones/milestone.py b/milestones/milestone.py index 035dc16..a7d1bf9 100644 --- a/milestones/milestone.py +++ b/milestones/milestone.py @@ -20,6 +20,7 @@ class Milestone(object): start: Optional[datetime] = None completed: Optional[datetime] = None celebrate: Optional[str] = "" + milestone_tracking: Optional[str] = "" summarychart: Optional[str] = "" predecessors: Set[str] = field(default_factory=set)