fix the problem of ruff of github

This commit is contained in:
gayshub 2023-12-15 17:57:58 +08:00
parent d859de37d9
commit da45e73b4f
1 changed files with 1 additions and 1 deletions

View File

@ -340,7 +340,7 @@ class Api:
task_id = create_task_id("text2img") task_id = create_task_id("text2img")
if txt2imgreq.force_task_id is None: if txt2imgreq.force_task_id is None:
task_id = txt2imgreq.force_task_id task_id = txt2imgreq.force_task_id
script_runner = scripts.scripts_txt2img script_runner = scripts.scripts_txt2img
if not script_runner.scripts: if not script_runner.scripts:
script_runner.initialize_scripts(False) script_runner.initialize_scripts(False)