Skip to content

Commit

Permalink
Fix organisation Results and Indicators Export
Browse files Browse the repository at this point in the history
- Fix missing indicator targets
  • Loading branch information
zuhdil committed Oct 24, 2024
1 parent 1864745 commit 7c8034d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion akvo/rsr/views/py_reports/results_indicators_excel_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,11 @@ def get_total_period_targets(indicator):


def get_indicator_target(indicator, targets_at):
return ensure_decimal(indicator.target_value) if targets_at == 'indicator' else get_total_period_targets(indicator)
return (
ensure_decimal(indicator.target_value)
if targets_at == 'indicator' or indicator.target_value
else get_total_period_targets(indicator)
)


def generate_workbook(organisation):
Expand Down

0 comments on commit 7c8034d

Please sign in to comment.