This commit is contained in:
flaskfarm
2022-10-17 16:16:50 +09:00
parent 44594b671c
commit 771f6c1dee
5 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View File

@@ -143,3 +143,4 @@ pre_start.sh
false
*copy.py
*.sh
data/

View File

@@ -309,7 +309,7 @@ class Framework:
else:
self.config['config_filepath'] = self.config['arg_config']
if os.path.exists(self.config['config_filepath']) == False:
if self.config.get('running_type').startswith('docker'):
if self.config.get('running_type', '').startswith('docker'):
with open(self.config['config_filepath'], 'w', encoding='utf8') as f:
yaml.dump({'path_data':'/data'}, f, default_flow_style=False, allow_unicode=True)
else:

View File

@@ -210,11 +210,11 @@ class PluginManager:
elif entity['version'] == '4':
mod_menu = getattr(entity['P'], 'menu')
if mod_menu:
if mod_menu and cls.all_package_list[key]['loading'] != False:
cls.plugin_menus[key]= {'menu':mod_menu, 'match':False}
if entity['version'] == '4':
setting_menu = getattr(entity['P'], 'setting_menu')
if setting_menu != None:
if setting_menu != None and cls.all_package_list[key]['loading'] != False:
cls.setting_menus.append(setting_menu)

View File

@@ -1 +1 @@
VERSION="4.0.11"
VERSION="4.0.14"