prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Add reporting template for Plan Finland
  We should add the reporting template that @stellanl and @Geerts are working on to the "My reports" section. Preferably so that only superusers / admins / Plan Finland employees can see this, but we might need a little hack for that.
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `akvo/rsr/reports.py`
  Content:
  ```
  1 # -*- coding: utf-8 -*-
  2 
  3 # Akvo RSR is covered by the GNU Affero General Public License.
  4 # See more details in the license.txt file located at the root folder of the Akvo RSR module.
  5 # For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.
  6 
  7 from django.utils.translation import ugettext_lazy as _
  8 
  9 # Data for all available reports from ReportServer, with the following fields:
  10 # - key: A unique identifier for the report
  11 # - title: The title of the report, will be shown on the 'My reports' page as such
  12 # - description: The description of the report, as displayed on the 'My reports' page
  13 # - formats: The available formats for the report, see options below
  14 # - parameters: The available parameters for the report, options; ['project', 'organisation']
  15 # - url: The URL where the report is available. Parameter(s) should be indicated in between {..}'s.
  16 
  17 REPORTS = [
  18     {
  19         'key': 'results-framework',
  20         'title': unicode(_('Results and indicators overview')),
  21         'description': unicode(_('This report gives an overview of the status of your project\'s '
  22                                  'results and indicators.')),
  23         'formats': ['pdf',],
  24         'parameters': ['project', ],
  25         'url': '/en/reports/project_results/{project}?format={format}&download=true'
  26     },
  27     {
  28         'key': 'results-simple-table',
  29         'title': unicode(_('Results and indicators table')),
  30         'description': unicode(_('This report provides a view of your project\'s results and '
  31                                  'indicators data in a table.')),
  32         'formats': ['excel',],
  33         'parameters': ['project', ],
  34         'url': '/en/reports/project_results_simple_table/{project}?format={format}&download=true'
  35     },
  36     {
  37         'key': 'projects-overview',
  38         'title': unicode(_('Projects overview')),
  39         'description': unicode(_('This report provides information about your organisation\'s '
  40                                  'projects: amount of updates, country, total budgets, project '
  41                                  'statuses, start- and end dates.')),
  42         'formats': ['pdf', 'excel'],
  43         'parameters': ['organisation', ],
  44         'url': '/en/reports/project_overview/{organisation}?format={format}&download=true'
  45     },
  46     {
  47         'key': 'data-quality',
  48         'title': unicode(_('Data quality overview')),
  49         'description': unicode(_('This report gives an overview of your organisation\'s projects '
  50                                  'that have passed the planned end date, need funding or that '
  51                                  'haven\'t been edited or updated for 3 months.')),
  52         'formats': ['pdf', 'excel'],
  53         'parameters': ['organisation', ],
  54         'url': '/en/reports/data_quality/{organisation}?format={format}&download=true'
  55     }
  56 ]
  57 
  58 # Data for all available formats from ReportServer, with the following fields:
  59 # - key: A unique identifier for the format, also used in the formats field of the reports
  60 # - displayName: The display name of the format, as displayed on the 'My reports' page
  61 # - icon: The font awesome icon of the format, as displayed on the 'My reports' page
  62 
  63 FORMATS = [
  64     {
  65         'key': 'pdf',
  66         'displayName': 'PDF',
  67         'icon': 'file-pdf-o',
  68     },
  69     {
  70         'key': 'excel',
  71         'displayName': 'Excel',
  72         'icon': 'file-excel-o',
  73     },
  74     {
  75         'key': 'word',
  76         'displayName': 'Word',
  77         'icon': 'file-word-o',
  78     },
  79     {
  80         'key': 'html',
  81         'displayName': 'HTML',
  82         'icon': 'code',
  83     },
  84 ]
  85
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/akvo/rsr/reports.py b/akvo/rsr/reports.py
  --- a/akvo/rsr/reports.py
  +++ b/akvo/rsr/reports.py
  @@ -52,6 +52,15 @@
           'formats': ['pdf', 'excel'],
           'parameters': ['organisation', ],
           'url': '/en/reports/data_quality/{organisation}?format={format}&download=true'
  +    },
  +    {
  +        'key': 'plan-finland',
  +        'title': unicode(_('Plan Finland report')),
  +        'description': unicode(_('This custom MFA report for Plan Finland gives an overview of the '
  +                                 'hierarchy of Plan Finland\'s projects and their results.')),
  +        'formats': ['pdf', ],
  +        'parameters': ['project', ],
  +        'url': '/en/reports/plan_finland/{project}?format={format}&download=true'
       }
   ]
  
verification_info: {"golden_diff": "diff --git a/akvo/rsr/reports.py b/akvo/rsr/reports.py\n--- a/akvo/rsr/reports.py\n+++ b/akvo/rsr/reports.py\n@@ -52,6 +52,15 @@\n         'formats': ['pdf', 'excel'],\n         'parameters': ['organisation', ],\n         'url': '/en/reports/data_quality/{organisation}?format={format}&download=true'\n+    },\n+    {\n+        'key': 'plan-finland',\n+        'title': unicode(_('Plan Finland report')),\n+        'description': unicode(_('This custom MFA report for Plan Finland gives an overview of the '\n+                                 'hierarchy of Plan Finland\\'s projects and their results.')),\n+        'formats': ['pdf', ],\n+        'parameters': ['project', ],\n+        'url': '/en/reports/plan_finland/{project}?format={format}&download=true'\n     }\n ]\n", "issue": "Add reporting template for Plan Finland\nWe should add the reporting template that @stellanl and @Geerts are working on to the \"My reports\" section. Preferably so that only superusers / admins / Plan Finland employees can see this, but we might need a little hack for that.\n\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\nfrom django.utils.translation import ugettext_lazy as _\n\n# Data for all available reports from ReportServer, with the following fields:\n# - key: A unique identifier for the report\n# - title: The title of the report, will be shown on the 'My reports' page as such\n# - description: The description of the report, as displayed on the 'My reports' page\n# - formats: The available formats for the report, see options below\n# - parameters: The available parameters for the report, options; ['project', 'organisation']\n# - url: The URL where the report is available. Parameter(s) should be indicated in between {..}'s.\n\nREPORTS = [\n    {\n        'key': 'results-framework',\n        'title': unicode(_('Results and indicators overview')),\n        'description': unicode(_('This report gives an overview of the status of your project\\'s '\n                                 'results and indicators.')),\n        'formats': ['pdf',],\n        'parameters': ['project', ],\n        'url': '/en/reports/project_results/{project}?format={format}&download=true'\n    },\n    {\n        'key': 'results-simple-table',\n        'title': unicode(_('Results and indicators table')),\n        'description': unicode(_('This report provides a view of your project\\'s results and '\n                                 'indicators data in a table.')),\n        'formats': ['excel',],\n        'parameters': ['project', ],\n        'url': '/en/reports/project_results_simple_table/{project}?format={format}&download=true'\n    },\n    {\n        'key': 'projects-overview',\n        'title': unicode(_('Projects overview')),\n        'description': unicode(_('This report provides information about your organisation\\'s '\n                                 'projects: amount of updates, country, total budgets, project '\n                                 'statuses, start- and end dates.')),\n        'formats': ['pdf', 'excel'],\n        'parameters': ['organisation', ],\n        'url': '/en/reports/project_overview/{organisation}?format={format}&download=true'\n    },\n    {\n        'key': 'data-quality',\n        'title': unicode(_('Data quality overview')),\n        'description': unicode(_('This report gives an overview of your organisation\\'s projects '\n                                 'that have passed the planned end date, need funding or that '\n                                 'haven\\'t been edited or updated for 3 months.')),\n        'formats': ['pdf', 'excel'],\n        'parameters': ['organisation', ],\n        'url': '/en/reports/data_quality/{organisation}?format={format}&download=true'\n    }\n]\n\n# Data for all available formats from ReportServer, with the following fields:\n# - key: A unique identifier for the format, also used in the formats field of the reports\n# - displayName: The display name of the format, as displayed on the 'My reports' page\n# - icon: The font awesome icon of the format, as displayed on the 'My reports' page\n\nFORMATS = [\n    {\n        'key': 'pdf',\n        'displayName': 'PDF',\n        'icon': 'file-pdf-o',\n    },\n    {\n        'key': 'excel',\n        'displayName': 'Excel',\n        'icon': 'file-excel-o',\n    },\n    {\n        'key': 'word',\n        'displayName': 'Word',\n        'icon': 'file-word-o',\n    },\n    {\n        'key': 'html',\n        'displayName': 'HTML',\n        'icon': 'code',\n    },\n]\n", "path": "akvo/rsr/reports.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\nfrom django.utils.translation import ugettext_lazy as _\n\n# Data for all available reports from ReportServer, with the following fields:\n# - key: A unique identifier for the report\n# - title: The title of the report, will be shown on the 'My reports' page as such\n# - description: The description of the report, as displayed on the 'My reports' page\n# - formats: The available formats for the report, see options below\n# - parameters: The available parameters for the report, options; ['project', 'organisation']\n# - url: The URL where the report is available. Parameter(s) should be indicated in between {..}'s.\n\nREPORTS = [\n    {\n        'key': 'results-framework',\n        'title': unicode(_('Results and indicators overview')),\n        'description': unicode(_('This report gives an overview of the status of your project\\'s '\n                                 'results and indicators.')),\n        'formats': ['pdf',],\n        'parameters': ['project', ],\n        'url': '/en/reports/project_results/{project}?format={format}&download=true'\n    },\n    {\n        'key': 'results-simple-table',\n        'title': unicode(_('Results and indicators table')),\n        'description': unicode(_('This report provides a view of your project\\'s results and '\n                                 'indicators data in a table.')),\n        'formats': ['excel',],\n        'parameters': ['project', ],\n        'url': '/en/reports/project_results_simple_table/{project}?format={format}&download=true'\n    },\n    {\n        'key': 'projects-overview',\n        'title': unicode(_('Projects overview')),\n        'description': unicode(_('This report provides information about your organisation\\'s '\n                                 'projects: amount of updates, country, total budgets, project '\n                                 'statuses, start- and end dates.')),\n        'formats': ['pdf', 'excel'],\n        'parameters': ['organisation', ],\n        'url': '/en/reports/project_overview/{organisation}?format={format}&download=true'\n    },\n    {\n        'key': 'data-quality',\n        'title': unicode(_('Data quality overview')),\n        'description': unicode(_('This report gives an overview of your organisation\\'s projects '\n                                 'that have passed the planned end date, need funding or that '\n                                 'haven\\'t been edited or updated for 3 months.')),\n        'formats': ['pdf', 'excel'],\n        'parameters': ['organisation', ],\n        'url': '/en/reports/data_quality/{organisation}?format={format}&download=true'\n    },\n    {\n        'key': 'plan-finland',\n        'title': unicode(_('Plan Finland report')),\n        'description': unicode(_('This custom MFA report for Plan Finland gives an overview of the '\n                                 'hierarchy of Plan Finland\\'s projects and their results.')),\n        'formats': ['pdf', ],\n        'parameters': ['project', ],\n        'url': '/en/reports/plan_finland/{project}?format={format}&download=true'\n    }\n]\n\n# Data for all available formats from ReportServer, with the following fields:\n# - key: A unique identifier for the format, also used in the formats field of the reports\n# - displayName: The display name of the format, as displayed on the 'My reports' page\n# - icon: The font awesome icon of the format, as displayed on the 'My reports' page\n\nFORMATS = [\n    {\n        'key': 'pdf',\n        'displayName': 'PDF',\n        'icon': 'file-pdf-o',\n    },\n    {\n        'key': 'excel',\n        'displayName': 'Excel',\n        'icon': 'file-excel-o',\n    },\n    {\n        'key': 'word',\n        'displayName': 'Word',\n        'icon': 'file-word-o',\n    },\n    {\n        'key': 'html',\n        'displayName': 'HTML',\n        'icon': 'code',\n    },\n]\n", "path": "akvo/rsr/reports.py"}]}