Merge pull request #6921 from pratu16x7/explore-2.0-fixes

chore(modules): cleanup helper methods
This commit is contained in:
Prateeksha Singh 2019-02-12 12:15:38 +05:30 committed by GitHub
commit cd703ee532
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"