jschalk / jaar

Cross-cultural communication engine built on customizable economic systems. Produces personalized agendas, calendars, finance reports for users.
0 stars 1 forks source link

_ancestor_pledge_count feature tests needed #326

Closed jschalk closed 2 months ago

jschalk commented 2 months ago

IdeaUnit._ancestor_pledge_count attr identifies when a pledge that is active will not appear in a to do agenda list because it has a incomplete child task.

jschalk commented 2 months ago

going to remove the feature for now. Need to concentrate on the prize:


        root_idea.set_ancestor_pledge_count(0, False)

        ancestor_pledge_count = parent_idea._ancestor_pledge_count
        x_idea.set_ancestor_pledge_count(ancestor_pledge_count, parent_idea.pledge)

    def set_ancestor_pledge_count(
        self, parent_ancestor_pledge_count: int, parent_pledge: bool
    ):
        x_int = 0
        x_int = 1 if parent_pledge else 0
        self._ancestor_pledge_count = parent_ancestor_pledge_count + x_int