prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Export-Button Problem in Modul "Brainstorming (with map)" on Prod, Stage and Dev
  **URL:** https://meinberlin-dev.liqd.net/dashboard/projects/multimodul-test-merkmalkategorie/basic/
  **user:** initiator, admin
  **expected behaviour:** as I user I want to export all Ideas and Comments in all moduls which have Ideas/Proposals
  **behaviour:** In the Modules "Brainstorming/Brainstorming with Map" I cannot see the Excel-Export-Button and therefore not export the ideas/comments in my project. 
  **important screensize:** - 
  **device & browser:** - 
  **Comment/Question:** Every other modul with proposals/ideas has the excel-export-button. There's a workaround when recreating the right URL, I can get to the Excel-Export page. In this case: https://meinberlin-dev.liqd.net/dashboard/modules/brainstorming-mit-karte-7/export/mapidea/
  <img width="311" alt="Bildschirm­foto 2023-02-03 um 10 50 25" src="https://user-images.githubusercontent.com/113608720/216568760-5075d601-eb68-44f1-9209-a3b547d994f9.png">
  
  
  Screenshot?
  
  
  </issue>
  <code>
  [start of meinberlin/apps/mapideas/dashboard.py]
  1 from django.urls import reverse
  2 from django.utils.translation import gettext_lazy as _
  3 
  4 from adhocracy4.dashboard import DashboardComponent
  5 from adhocracy4.dashboard import components
  6 
  7 from . import exports
  8 from . import views
  9 
  10 
  11 class ExportMapIdeaComponent(DashboardComponent):
  12     identifier = "mapidea_export"
  13     weight = 50
  14     label = _("Export Excel")
  15 
  16     def is_effective(self, module):
  17         return (
  18             module.blueprint_type == "MIC"
  19             and not module.project.is_draft
  20             and not module.is_draft
  21         )
  22 
  23     def get_progress(self, module):
  24         return 0, 0
  25 
  26     def get_base_url(self, module):
  27         return reverse(
  28             "a4dashboard:mapidea-export-module",
  29             kwargs={
  30                 "module_slug": module.slug,
  31             },
  32         )
  33 
  34     def get_urls(self):
  35         return [
  36             (
  37                 r"^modules/(?P<module_slug>[-\w_]+)/export/mapidea/$",
  38                 views.MapIdeaDashboardExportView.as_view(component=self),
  39                 "mapidea-export-module",
  40             ),
  41             (
  42                 r"^modules/(?P<module_slug>[-\w_]+)/export/mapidea/ideas/$",
  43                 exports.MapIdeaExportView.as_view(),
  44                 "mapidea-export",
  45             ),
  46             (
  47                 r"^modules/(?P<module_slug>[-\w_]+)/export/mapidea/comments/$",
  48                 exports.MapIdeaCommentExportView.as_view(),
  49                 "mapidea-comment-export",
  50             ),
  51         ]
  52 
  53 
  54 components.register_module(ExportMapIdeaComponent())
  55
  [end of meinberlin/apps/mapideas/dashboard.py]
  [start of meinberlin/apps/ideas/dashboard.py]
  1 from django.urls import reverse
  2 from django.utils.translation import gettext_lazy as _
  3 
  4 from adhocracy4.dashboard import DashboardComponent
  5 from adhocracy4.dashboard import components
  6 
  7 from . import exports
  8 from . import views
  9 
  10 
  11 class ExportIdeaComponent(DashboardComponent):
  12     identifier = "idea_export"
  13     weight = 50
  14     label = _("Export Excel")
  15 
  16     def is_effective(self, module):
  17         return (
  18             module.blueprint_type == "IC"
  19             and not module.project.is_draft
  20             and not module.is_draft
  21         )
  22 
  23     def get_progress(self, module):
  24         return 0, 0
  25 
  26     def get_base_url(self, module):
  27         return reverse(
  28             "a4dashboard:idea-export-module",
  29             kwargs={
  30                 "module_slug": module.slug,
  31             },
  32         )
  33 
  34     def get_urls(self):
  35         return [
  36             (
  37                 r"^modules/(?P<module_slug>[-\w_]+)/export/idea/$",
  38                 views.IdeaDashboardExportView.as_view(component=self),
  39                 "idea-export-module",
  40             ),
  41             (
  42                 r"^modules/(?P<module_slug>[-\w_]+)/export/idea/ideas/$",
  43                 exports.IdeaExportView.as_view(),
  44                 "idea-export",
  45             ),
  46             (
  47                 r"^modules/(?P<module_slug>[-\w_]+)/export/idea/comments/$",
  48                 exports.IdeaCommentExportView.as_view(),
  49                 "idea-comment-export",
  50             ),
  51         ]
  52 
  53 
  54 components.register_module(ExportIdeaComponent())
  55
  [end of meinberlin/apps/ideas/dashboard.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/meinberlin/apps/ideas/dashboard.py b/meinberlin/apps/ideas/dashboard.py
  --- a/meinberlin/apps/ideas/dashboard.py
  +++ b/meinberlin/apps/ideas/dashboard.py
  @@ -15,7 +15,7 @@
   
       def is_effective(self, module):
           return (
  -            module.blueprint_type == "IC"
  +            module.blueprint_type in ["IC", "BS"]
               and not module.project.is_draft
               and not module.is_draft
           )
  diff --git a/meinberlin/apps/mapideas/dashboard.py b/meinberlin/apps/mapideas/dashboard.py
  --- a/meinberlin/apps/mapideas/dashboard.py
  +++ b/meinberlin/apps/mapideas/dashboard.py
  @@ -15,7 +15,7 @@
   
       def is_effective(self, module):
           return (
  -            module.blueprint_type == "MIC"
  +            module.blueprint_type in ["MIC", "MBS"]
               and not module.project.is_draft
               and not module.is_draft
           )
  
verification_info: {"golden_diff": "diff --git a/meinberlin/apps/ideas/dashboard.py b/meinberlin/apps/ideas/dashboard.py\n--- a/meinberlin/apps/ideas/dashboard.py\n+++ b/meinberlin/apps/ideas/dashboard.py\n@@ -15,7 +15,7 @@\n \n     def is_effective(self, module):\n         return (\n-            module.blueprint_type == \"IC\"\n+            module.blueprint_type in [\"IC\", \"BS\"]\n             and not module.project.is_draft\n             and not module.is_draft\n         )\ndiff --git a/meinberlin/apps/mapideas/dashboard.py b/meinberlin/apps/mapideas/dashboard.py\n--- a/meinberlin/apps/mapideas/dashboard.py\n+++ b/meinberlin/apps/mapideas/dashboard.py\n@@ -15,7 +15,7 @@\n \n     def is_effective(self, module):\n         return (\n-            module.blueprint_type == \"MIC\"\n+            module.blueprint_type in [\"MIC\", \"MBS\"]\n             and not module.project.is_draft\n             and not module.is_draft\n         )\n", "issue": "Export-Button Problem in Modul \"Brainstorming (with map)\" on Prod, Stage and Dev\n**URL:** https://meinberlin-dev.liqd.net/dashboard/projects/multimodul-test-merkmalkategorie/basic/\r\n**user:** initiator, admin\r\n**expected behaviour:** as I user I want to export all Ideas and Comments in all moduls which have Ideas/Proposals\r\n**behaviour:** In the Modules \"Brainstorming/Brainstorming with Map\" I cannot see the Excel-Export-Button and therefore not export the ideas/comments in my project. \r\n**important screensize:** - \r\n**device & browser:** - \r\n**Comment/Question:** Every other modul with proposals/ideas has the excel-export-button. There's a workaround when recreating the right URL, I can get to the Excel-Export page. In this case: https://meinberlin-dev.liqd.net/dashboard/modules/brainstorming-mit-karte-7/export/mapidea/\r\n<img width=\"311\" alt=\"Bildschirm\u00adfoto 2023-02-03 um 10 50 25\" src=\"https://user-images.githubusercontent.com/113608720/216568760-5075d601-eb68-44f1-9209-a3b547d994f9.png\">\r\n\r\n\r\nScreenshot?\r\n\n", "before_files": [{"content": "from django.urls import reverse\nfrom django.utils.translation import gettext_lazy as _\n\nfrom adhocracy4.dashboard import DashboardComponent\nfrom adhocracy4.dashboard import components\n\nfrom . import exports\nfrom . import views\n\n\nclass ExportMapIdeaComponent(DashboardComponent):\n    identifier = \"mapidea_export\"\n    weight = 50\n    label = _(\"Export Excel\")\n\n    def is_effective(self, module):\n        return (\n            module.blueprint_type == \"MIC\"\n            and not module.project.is_draft\n            and not module.is_draft\n        )\n\n    def get_progress(self, module):\n        return 0, 0\n\n    def get_base_url(self, module):\n        return reverse(\n            \"a4dashboard:mapidea-export-module\",\n            kwargs={\n                \"module_slug\": module.slug,\n            },\n        )\n\n    def get_urls(self):\n        return [\n            (\n                r\"^modules/(?P<module_slug>[-\\w_]+)/export/mapidea/$\",\n                views.MapIdeaDashboardExportView.as_view(component=self),\n                \"mapidea-export-module\",\n            ),\n            (\n                r\"^modules/(?P<module_slug>[-\\w_]+)/export/mapidea/ideas/$\",\n                exports.MapIdeaExportView.as_view(),\n                \"mapidea-export\",\n            ),\n            (\n                r\"^modules/(?P<module_slug>[-\\w_]+)/export/mapidea/comments/$\",\n                exports.MapIdeaCommentExportView.as_view(),\n                \"mapidea-comment-export\",\n            ),\n        ]\n\n\ncomponents.register_module(ExportMapIdeaComponent())\n", "path": "meinberlin/apps/mapideas/dashboard.py"}, {"content": "from django.urls import reverse\nfrom django.utils.translation import gettext_lazy as _\n\nfrom adhocracy4.dashboard import DashboardComponent\nfrom adhocracy4.dashboard import components\n\nfrom . import exports\nfrom . import views\n\n\nclass ExportIdeaComponent(DashboardComponent):\n    identifier = \"idea_export\"\n    weight = 50\n    label = _(\"Export Excel\")\n\n    def is_effective(self, module):\n        return (\n            module.blueprint_type == \"IC\"\n            and not module.project.is_draft\n            and not module.is_draft\n        )\n\n    def get_progress(self, module):\n        return 0, 0\n\n    def get_base_url(self, module):\n        return reverse(\n            \"a4dashboard:idea-export-module\",\n            kwargs={\n                \"module_slug\": module.slug,\n            },\n        )\n\n    def get_urls(self):\n        return [\n            (\n                r\"^modules/(?P<module_slug>[-\\w_]+)/export/idea/$\",\n                views.IdeaDashboardExportView.as_view(component=self),\n                \"idea-export-module\",\n            ),\n            (\n                r\"^modules/(?P<module_slug>[-\\w_]+)/export/idea/ideas/$\",\n                exports.IdeaExportView.as_view(),\n                \"idea-export\",\n            ),\n            (\n                r\"^modules/(?P<module_slug>[-\\w_]+)/export/idea/comments/$\",\n                exports.IdeaCommentExportView.as_view(),\n                \"idea-comment-export\",\n            ),\n        ]\n\n\ncomponents.register_module(ExportIdeaComponent())\n", "path": "meinberlin/apps/ideas/dashboard.py"}]}