This commit is contained in:
flaskfarm
2022-10-03 02:18:11 +09:00
parent 269a7e5234
commit 306a160d6b
2 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@@ -140,3 +140,4 @@ export.sh
run.sh run.sh
pre_start.sh pre_start.sh
*.code-workspace *.code-workspace
false/

View File

@@ -25,7 +25,8 @@ class ModuleHome(PluginModuleBase):
elif command == 'get_config': elif command == 'get_config':
data = {} data = {}
for key, value in F.app.config.items(): for key, value in F.app.config.items():
data[key] = str(value) if key not in ['SECRET_KEY']:
data[key] = str(value)
ret = {'json':{'Framework':F.config, 'Flask':data}} ret = {'json':{'Framework':F.config, 'Flask':data}}
return jsonify(ret) return jsonify(ret)