Skip to content

Commit 51aa46b

Browse files
committed
Update main params
1 parent 23a5b86 commit 51aa46b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

backend/main.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@
88
from backend.plugin.tools import get_plugins, install_requirements
99
from 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

1616
with 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

2929
app = register_app()

0 commit comments

Comments
 (0)