From 7a457bc76e611935222aa6a55935d2a38daaebdb Mon Sep 17 00:00:00 2001 From: Prateeksha Singh Date: Thu, 7 Feb 2019 16:18:50 +0530 Subject: [PATCH] fix(modules): handle different configs --- frappe/config/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frappe/config/__init__.py b/frappe/config/__init__.py index d26f788bba..1b412a0dcf 100644 --- a/frappe/config/__init__.py +++ b/frappe/config/__init__.py @@ -27,9 +27,6 @@ def get_modules_from_app(app): except ImportError: return [] - # Only newly formatted modules that have a category to be shown on desk - modules = [m for m in modules if m.get("category")] - active_domains = frappe.get_active_domains() if isinstance(modules, dict): @@ -38,7 +35,10 @@ def get_modules_from_app(app): module['module_name'] = m active_modules_list.append(module) else: + # Only newly formatted modules that have a category to be shown on desk + modules = [m for m in modules if m.get("category")] active_modules_list = [] + for m in modules: to_add = True module_name = m.get("module_name")