redis implemntations and api setup completed
This commit is contained in:
@@ -2,8 +2,10 @@ from typing import Type, TypeVar
|
||||
|
||||
from sqlalchemy.exc import SQLAlchemyError
|
||||
from sqlalchemy.orm import Session
|
||||
from ApiLibrary import get_line_number_for_error
|
||||
from ErrorHandlers.Exceptions.api_exc import HTTPExceptionApi
|
||||
|
||||
from ApiLayers.ApiLibrary import get_line_number_for_error
|
||||
from ApiLayers.ErrorHandlers.Exceptions.api_exc import HTTPExceptionApi
|
||||
|
||||
|
||||
# Type variable for class methods returning self
|
||||
T = TypeVar("T", bound="FilterAttributes")
|
||||
|
||||
@@ -6,8 +6,8 @@ from sqlalchemy import TIMESTAMP, NUMERIC
|
||||
from sqlalchemy.orm import Session, Mapped
|
||||
from pydantic import BaseModel
|
||||
|
||||
from ApiLibrary import system_arrow, get_line_number_for_error, client_arrow
|
||||
from ErrorHandlers.Exceptions.api_exc import HTTPExceptionApi
|
||||
from ApiLayers.ApiLibrary import system_arrow, get_line_number_for_error
|
||||
from ApiLayers.ErrorHandlers.Exceptions.api_exc import HTTPExceptionApi
|
||||
|
||||
from Services.PostgresDb.Models.core_alchemy import BaseAlchemyModel
|
||||
from Services.PostgresDb.Models.system_fields import SystemFields
|
||||
|
||||
@@ -13,9 +13,9 @@ from sqlalchemy.sql.elements import BinaryExpression
|
||||
from sqlalchemy_mixins.smartquery import SmartQueryMixin
|
||||
|
||||
from Services.PostgresDb.Models.response import PostgresResponse
|
||||
from Services.PostgresDb.Models_old.base_model import BaseModel
|
||||
from Services.PostgresDb.Models.core_alchemy import BaseAlchemyModel
|
||||
|
||||
from ApiLibrary import system_arrow
|
||||
from ApiLayers.ApiLibrary import system_arrow
|
||||
|
||||
|
||||
T = TypeVar("T", bound="FilterAttributes")
|
||||
@@ -63,7 +63,7 @@ class ArgumentModel:
|
||||
return arg
|
||||
|
||||
|
||||
class QueryModel(ArgumentModel, BaseModel, SmartQueryMixin):
|
||||
class QueryModel(ArgumentModel, BaseAlchemyModel, SmartQueryMixin):
|
||||
|
||||
pre_query = None
|
||||
__abstract__ = True
|
||||
|
||||
Reference in New Issue
Block a user