Update init.py

This commit is contained in:
Mr Chen 2024-11-27 05:23:05 +08:00
parent d25993e78b
commit 293c902a80
1 changed files with 3 additions and 3 deletions

View File

@ -14,9 +14,9 @@ import core.mw as mw
def initPanelData():
_dbfile = mw.getPanelDataDir() + '/panel.db'
if os.path.exists(_dbfile):
return True
# _dbfile = mw.getPanelDataDir() + '/panel.db'
# if os.path.exists(_dbfile):
# return True
sql_file = mw.getPanelDir() + '/web/admin/setup/sql/default.sql'
sql = mw.M().dbPos(mw.getPanelDataDir(),'panel')
content = mw.readFile(sql_file)