Skip to content

Commit

Permalink
Merged branch bugfix/big-plans-with-empty-stuff into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
horia141 committed Jun 1, 2024
1 parent beb04fd commit 6eace29
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/core/jupiter/core/use_cases/time_plans/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,13 @@ async def _perform_transactional_read(
and big_plan.last_modified_time
<= time_plan.end_date.to_timestamp_at_end_of_day()
)
all_subactivities_are_done = all(
activity_doneness[a]
for a in activities_by_big_plan_ref_id[big_plan.ref_id]
all_subactivities_are_done = (
all(
activity_doneness[a]
for a in activities_by_big_plan_ref_id[big_plan.ref_id]
)
if len(activities_by_big_plan_ref_id[big_plan.ref_id]) > 0
else False
)
activity_doneness[activity.ref_id] = (
big_plan.is_completed
Expand Down

0 comments on commit 6eace29

Please sign in to comment.