From dad1fc60191b048a1fa6cf14076ad0041f72be69 Mon Sep 17 00:00:00 2001 From: robbertuittenbroek Date: Wed, 15 May 2024 17:11:10 +0200 Subject: [PATCH] Adding more structure and database support --- tad/api/routes/tasks.py | 2 -- tad/core/config.py | 3 --- tad/services/statuses.py | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/tad/api/routes/tasks.py b/tad/api/routes/tasks.py index 739fb3c1..bc5d2b04 100644 --- a/tad/api/routes/tasks.py +++ b/tad/api/routes/tasks.py @@ -18,8 +18,6 @@ async def test(): @router.post("/move", response_class=HTMLResponse) async def move_task(request: Request): json = await request.json() - - print(json) task = tasks_service.move_task( int(json["taskId"]), int(json["statusId"]), json["previousSiblingId"], json["nextSiblingId"] ) diff --git a/tad/core/config.py b/tad/core/config.py index de95126a..e178109d 100644 --- a/tad/core/config.py +++ b/tad/core/config.py @@ -17,9 +17,6 @@ logger = logging.getLogger(__name__) -print("My name is " + __name__) -logger.info("Hallo ik ben een logOOOOOOOOger") - class Settings(BaseSettings): # todo(berry): investigate yaml, toml or json file support for SettingsConfigDict diff --git a/tad/services/statuses.py b/tad/services/statuses.py index b9ce4229..fe96ac17 100644 --- a/tad/services/statuses.py +++ b/tad/services/statuses.py @@ -10,8 +10,8 @@ class StatusesService(metaclass=Singleton): __statuses_repository = StatusesRepository() def __init__(self): + logger.info("Statuses service initialized") # TODO find out why logging is not visible - print("I am created, hello world") def get_status(self, status_id): return self.__statuses_repository.find_by_id(status_id)