Merge pull request #6921 from pratu16x7/explore-2.0-fixes
chore(modules): cleanup helper methods
This commit is contained in:
commit
cd703ee532
1 changed files with 6 additions and 7 deletions
|
|
@ -62,15 +62,8 @@ def get_modules_from_app(app):
|
|||
|
||||
return active_modules_list
|
||||
|
||||
def show_onboard(module):
|
||||
return module.get("type") == "module"
|
||||
|
||||
def is_domain(module):
|
||||
return module.get("category") == "Domains"
|
||||
|
||||
@frappe.whitelist()
|
||||
def is_onboard_present(module):
|
||||
print(module["module_name"])
|
||||
exists_cache = {}
|
||||
def exists(name, link_type):
|
||||
exists = exists_cache.get(name)
|
||||
|
|
@ -88,3 +81,9 @@ def is_onboard_present(module):
|
|||
if exists(item.get("name"), item.get("type")):
|
||||
return True
|
||||
return False
|
||||
|
||||
def show_onboard(module):
|
||||
return module.get("type") == "module"
|
||||
|
||||
def is_domain(module):
|
||||
return module.get("category") == "Domains"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue