From e27b91b4c94d100f70ad84bf76ba835ef866162b Mon Sep 17 00:00:00 2001 From: wunder957 Date: Wed, 13 Sep 2023 17:33:20 +0800 Subject: [PATCH] Typo files --- dev-tools/{entrypoint-cli.py => entrypoint-service.py} | 1 - dev-tools/{entrypoint-pip.py => entrypoint.py} | 0 duetector/service/app.py | 3 +-- 3 files changed, 1 insertion(+), 3 deletions(-) rename dev-tools/{entrypoint-cli.py => entrypoint-service.py} (93%) rename dev-tools/{entrypoint-pip.py => entrypoint.py} (100%) diff --git a/dev-tools/entrypoint-cli.py b/dev-tools/entrypoint-service.py similarity index 93% rename from dev-tools/entrypoint-cli.py rename to dev-tools/entrypoint-service.py index fc54d79..01d09ed 100644 --- a/dev-tools/entrypoint-cli.py +++ b/dev-tools/entrypoint-service.py @@ -13,7 +13,6 @@ config_file = Path("./config.toml") if __name__ == "__main__": - db_file.unlink(missing_ok=True) sys.argv[0] = re.sub(r"(-script\.pyw?|\.exe)?$", "", sys.argv[0]) sys.argv.append("start") sys.argv.extend(["--config", config_file.resolve().as_posix()]) diff --git a/dev-tools/entrypoint-pip.py b/dev-tools/entrypoint.py similarity index 100% rename from dev-tools/entrypoint-pip.py rename to dev-tools/entrypoint.py diff --git a/duetector/service/app.py b/duetector/service/app.py index 6f8d508..0a9aeb7 100644 --- a/duetector/service/app.py +++ b/duetector/service/app.py @@ -1,7 +1,6 @@ -from fastapi import Depends, FastAPI +from fastapi import FastAPI from duetector.__init__ import __version__ -from duetector.service.config import get_config from duetector.service.control.routes import r as cr from duetector.service.query.routes import r as qr