mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-05-22 01:34:29 +00:00
run ruff formatting
This commit is contained in:
parent
62712dcad3
commit
bf18dcbcf9
22 changed files with 82 additions and 75 deletions
|
@ -1,7 +1,9 @@
|
|||
from prometheus_client import multiprocess
|
||||
import re
|
||||
import sys
|
||||
|
||||
from prometheus_client import multiprocess
|
||||
|
||||
|
||||
def child_exit(server, worker):
|
||||
multiprocess.mark_process_dead(worker.pid)
|
||||
|
||||
|
@ -35,7 +37,7 @@ def on_starting(server):
|
|||
|
||||
args = get_args()
|
||||
|
||||
from libretranslate import storage, scheduler, flood, secret
|
||||
from libretranslate import flood, scheduler, secret, storage
|
||||
storage.setup(args.shared_storage)
|
||||
scheduler.setup(args)
|
||||
flood.setup(args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue