From ab81dd14d779effd4b952f5b2e2359e265dd38f3 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Thu, 31 Aug 2023 13:15:34 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20SessionLocal=E3=81=AE=E5=8B=95?= =?UTF-8?q?=E4=BD=9C=E7=A2=BA=E8=AA=8D=E7=94=A8Endpoint=E3=82=92=E5=89=8A?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/jskult-webapp/src/main.py | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/ecs/jskult-webapp/src/main.py b/ecs/jskult-webapp/src/main.py index 495c4cc7..3bd9e73c 100644 --- a/ecs/jskult-webapp/src/main.py +++ b/ecs/jskult-webapp/src/main.py @@ -1,6 +1,6 @@ import os.path as path -from fastapi import Depends, FastAPI +from fastapi import FastAPI from fastapi.staticfiles import StaticFiles from starlette import status @@ -8,11 +8,8 @@ import src.static as static from src.controller import (bio, bio_download, healthcheck, login, logout, master_mainte, menu, root, ultmarc) from src.core import task -from src.depends.services import get_service from src.error.exception_handler import http_exception_handler from src.error.exceptions import UnexpectedException -from src.logging.get_logger import get_logger -from src.services.batch_status_service import BatchStatusService app = FastAPI() @@ -47,18 +44,3 @@ app.add_exception_handler(UnexpectedException, http_exception_handler) # サーバー起動時のイベント app.add_event_handler('startup', task.create_start_app_handler) - - -# logger = get_logger(__name__) - - -# @app.get('/sample/') -# def sample(service: BatchStatusService = Depends(get_service(BatchStatusService))): -# # import os -# # import threading -# logger.info('START') -# res = service.hdke_table_record -# logger.info(res) -# logger.info('END') -# return res -# # return f'{os.getpid()}, {threading.get_ident()}'