Skip to content

Commit

Permalink
Merged branch bugfix/finding-no-timeplans into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
horia141 committed Oct 23, 2024
1 parent 1b65fac commit df7777d
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,14 @@ async def _perform_transactional_read(
target=args.target,
target_ref_id=args.target_ref_id,
)
time_plans = await uow.get_for(TimePlan).find_all_generic(
parent_ref_id=time_plan_domain.ref_id,
allow_archived=args.allow_archived,
ref_id=[activity.time_plan.ref_id for activity in time_plan_activities],
)
if len(time_plan_activities) > 0:
time_plans = await uow.get_for(TimePlan).find_all_generic(
parent_ref_id=time_plan_domain.ref_id,
allow_archived=args.allow_archived,
ref_id=[activity.time_plan.ref_id for activity in time_plan_activities],
)
else:
time_plans = []
time_plans_by_ref_id = {time_plan.ref_id: time_plan for time_plan in time_plans}

return TimePlanActivityFindForTargetResult(
Expand Down

0 comments on commit df7777d

Please sign in to comment.