This commit is contained in:
Mr Chen
2024-11-24 05:10:19 +08:00
parent c249da061d
commit 41000f0c5d
3 changed files with 3 additions and 8 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ Install_App()
cp -rf $serverPath/source/webstats/GeoLite2-City.mmdb $serverPath/webstats/GeoLite2-City.mmdb
fi
cd $rootPath && python3 ${rootPath}/plugins/webstats/index.py start
cd $rootPath && python3 plugins/webstats/index.py start
echo '网站统计安装完成'
+1 -6
View File
@@ -31,11 +31,6 @@ def getServerDir():
return mw.getServerDir() + '/' + getPluginName()
def getTaskConf():
conf = getServerDir() + "/task_config.json"
return conf
def getConf():
conf = getServerDir() + "/lua/config.json"
return conf
@@ -126,7 +121,7 @@ def migrateSiteHotLogs(site_name, query_date):
if field is None:
field = "\'\'"
elif type(field) == str:
field = "\'" + field.replace("\'", "\”") + "\'"
field = "\'" + field.replace("\'", "\"") + "\'"
params += str(field)
insert_sql = "insert into web_logs(" + \
_columns + ") values(" + params + ")"