From 4196816426d0748aeab8713305eae65b88b37840 Mon Sep 17 00:00:00 2001
From: Thorge Petersen <petersen@rz.uni-kiel.de>
Date: Wed, 22 Mar 2023 11:41:30 +0100
Subject: [PATCH] Fixed blueprint rule order

---
 ckanext/odsh/plugin.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ckanext/odsh/plugin.py b/ckanext/odsh/plugin.py
index 67dd53d2..f7522b36 100644
--- a/ckanext/odsh/plugin.py
+++ b/ckanext/odsh/plugin.py
@@ -83,17 +83,17 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
             u'/dashboard', view_func=dashboard.dashboard, strict_slashes=False, defaults={
                 u'offset': 0
             })
-        bp_dashboard.add_url_rule(
-            u'/dashboard/<int:offset>', view_func=dashboard.dashboard)
         bp_dashboard.add_url_rule(
             u'/dashboard/datasets', view_func=dashboard.dashboard_datasets)
+        bp_dashboard.add_url_rule(
+            u'/dashboard/<int:offset>', view_func=dashboard.dashboard)
 
         # Harvest
         bp_harvest = harvest.blueprint
         bp_harvest.add_url_rule(u'/harvest', view_func=harvest.search, strict_slashes=False)
+        bp_harvest.add_url_rule(u'/harvest/new', view_func=harvest.new)
         bp_harvest.add_url_rule(u'/harvest/<id>', view_func=harvest.read)
         bp_harvest.add_url_rule(u'/harvest/about/<id>', view_func=harvest.about)
-        bp_harvest.add_url_rule(u'/harvest/new', view_func=harvest.new)
 
         # Feed
         bp_feed = feed.blueprint
-- 
GitLab