refactor(chalice): refactored code

This commit is contained in:
Taha Yassine Kraiem 2025-03-06 11:15:42 +01:00 committed by Kraiem Taha Yassine
parent d3851cedec
commit 6e1316c05f
3 changed files with 7 additions and 9 deletions

View file

@ -1,11 +1,9 @@
import logging import logging
from typing import List, Union
import schemas import schemas
from chalicelib.core import events, metadata, projects from chalicelib.core import metadata, projects
from chalicelib.core.sessions import sessions_favorite, performance_event, sessions_legacy from chalicelib.core.sessions import sessions_favorite, sessions_legacy
from chalicelib.utils import pg_client, helper, metrics_helper from chalicelib.utils import pg_client, helper
from chalicelib.utils import sql_helper as sh
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View file

@ -6,8 +6,8 @@ from fastapi import BackgroundTasks
from pydantic import BaseModel from pydantic import BaseModel
import schemas import schemas
from chalicelib.core import authorizers, metadata from chalicelib.core import authorizers
from chalicelib.core import tenants, spot, scope from chalicelib.core import tenants, spot
from chalicelib.utils import email_helper from chalicelib.utils import email_helper
from chalicelib.utils import helper from chalicelib.utils import helper
from chalicelib.utils import pg_client from chalicelib.utils import pg_client

View file

@ -8,8 +8,8 @@ from pydantic import BaseModel
from starlette import status from starlette import status
import schemas import schemas
from chalicelib.core import authorizers, metadata from chalicelib.core import authorizers
from chalicelib.core import tenants, roles, spot, scope from chalicelib.core import tenants, roles, spot
from chalicelib.utils import email_helper from chalicelib.utils import email_helper
from chalicelib.utils import helper from chalicelib.utils import helper
from chalicelib.utils import pg_client from chalicelib.utils import pg_client