From 15b8b99ae27f4dde25609522f4ae09651dda2f33 Mon Sep 17 00:00:00 2001 From: Anand Chitipothu Date: Wed, 7 Apr 2021 01:19:42 +0530 Subject: [PATCH] fix: fixed the issue with dynamic routes. - The code to install regex controller was not always executed. Forced the exection of that by adding it to community/__init__.py - Renoved the that code from hooks.py --- community/__init__.py | 2 ++ community/hooks.py | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/community/__init__.py b/community/__init__.py index 95d1338e..eb67ffe7 100644 --- a/community/__init__.py +++ b/community/__init__.py @@ -3,3 +3,5 @@ from __future__ import unicode_literals __version__ = '0.0.1' +from .routing import install_regex_converter +install_regex_converter() diff --git a/community/hooks.py b/community/hooks.py index 7669e2fe..bdc9e026 100644 --- a/community/hooks.py +++ b/community/hooks.py @@ -127,9 +127,6 @@ scheduler_events = { # # auto_cancel_exempted_doctypes = ["Auto Repeat"] -from .routing import install_regex_converter -install_regex_converter() - # Add all simple route rules here primary_rules = [ {"from_route": "/sketches", "to_route": "sketches"},