소스 검색

fix: allow syncing of dashboard even if setup is not complete

(cherry picked from commit 1d27f936e9)
version-14
phot0n 2 년 전
committed by Mergify
부모
커밋
99cb37c38d
1개의 변경된 파일1개의 추가작업 그리고 7개의 파일을 삭제
  1. +1
    -7
      frappe/utils/dashboard.py

+ 1
- 7
frappe/utils/dashboard.py 파일 보기

@@ -85,13 +85,7 @@ def get_dashboards_with_link(docname, doctype):

def sync_dashboards(app=None):
"""Import, overwrite dashboards from `[app]/[app]_dashboard`"""
if not cint(frappe.db.get_single_value("System Settings", "setup_complete")):
return

if app:
apps = [app]
else:
apps = frappe.get_installed_apps()
apps = [app] if app else frappe.get_installed_apps()

for app_name in apps:
print(f"Updating Dashboard for {app_name}")


불러오는 중...
취소
저장