Skip to content

Commit

Permalink
update modify
Browse files Browse the repository at this point in the history
  • Loading branch information
yuji38kwmt committed Nov 1, 2019
1 parent 0744709 commit 4d72e5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion annofabcli/statistics/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ def create_worktime_per_image_df(self, aggregation_by: AggregationBy, phase: Tas
for elm in worktime_statistics:
worktime_info = {"date": elm.date}
for account_info in elm.accounts:
stat_list = getattr(account_info.by_inputs, aggregation_by.value)
stat_list = getattr(account_info, aggregation_by.value)
stat_item: Optional[WorktimeStatisticsItem] = first_true(stat_list, pred=lambda e: e.phase == phase)
if stat_item is not None:
worktime_info[account_info.account_id] = isoduration_to_hour(stat_item.average)
Expand Down

0 comments on commit 4d72e5e

Please sign in to comment.