[app_user_audit] v18

This commit is contained in:
Chill
2024-11-11 17:38:36 +08:00
parent cc6d51e317
commit 83dbdefdce

View File

@@ -18,7 +18,12 @@ class Module(models.Model):
for module in self:
module_path = modules.get_module_path(module.name, display_warning=False) # avoid to log warning for fake community module
if module_path:
path = modules.check_resource_path(os.path.join(module_path, 'static/description/index_cn.html'))
index_path = os.path.join(module_path, 'static/description/index_cn.html')
index_path = os.path.normpath(index_path)
if os.path.exists(index_path):
path = tools.misc.file_path(index_path)
else:
path = False
else:
module.description_html_cn = False
if module_path and path: