File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 88from backend .plugin .tools import get_plugins , install_requirements
99from backend .utils .timezone import timezone
1010
11- print_log_style = f'{ timezone .to_str (timezone .now (), "%Y-%m-%d %H:%M:%S.%M0" )} | fba | - | '
12- console .print (Text (f'{ print_log_style } 检测插件依赖...' , style = 'bold cyan' ))
11+ _print_log_style = f'{ timezone .to_str (timezone .now (), "%Y-%m-%d %H:%M:%S.%M0" )} | fba | - | '
12+ console .print (Text (f'{ _print_log_style } 检测插件依赖...' , style = 'bold cyan' ))
1313
14- plugins = get_plugins ()
14+ _plugins = get_plugins ()
1515
1616with Progress (
17- SpinnerColumn (finished_text = f'[bold green]{ print_log_style } 插件准备就绪[/]' ),
17+ SpinnerColumn (finished_text = f'[bold green]{ _print_log_style } 插件准备就绪[/]' ),
1818 TextColumn ('[bold green]{task.completed}/{task.total}[/]' ),
1919 TimeElapsedColumn (),
2020 console = console ,
2121) as progress :
22- task = progress .add_task ('安装插件依赖...' , total = len (plugins ))
23- for plugin in plugins :
22+ task = progress .add_task ('安装插件依赖...' , total = len (_plugins ))
23+ for plugin in _plugins :
2424 install_requirements (plugin )
2525 progress .advance (task )
2626
27- console .print (Text (f'{ print_log_style } 启动服务...' , style = 'bold magenta' ))
27+ console .print (Text (f'{ _print_log_style } 启动服务...' , style = 'bold magenta' ))
2828
2929app = register_app ()
You can’t perform that action at this time.
0 commit comments