Преглед на файлове

fix(modules): handle different configs

version-14
Prateeksha Singh преди 6 години
родител
ревизия
7a457bc76e
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. +3
    -3
      frappe/config/__init__.py

+ 3
- 3
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")


Зареждане…
Отказ
Запис