update events via wrapper routers
This commit is contained in:
@@ -18,6 +18,7 @@ from dataclasses import dataclass
|
||||
from fastapi import status
|
||||
from fastapi.responses import JSONResponse
|
||||
|
||||
from ApiLibrary.common.line_number import get_line_number_for_error
|
||||
from Services.PostgresDb.Models.response import PostgresResponse
|
||||
from ErrorHandlers.ErrorHandlers.api_exc_handler import HTTPExceptionApi
|
||||
from Services.pagination import Pagination, PaginationConfig
|
||||
@@ -159,6 +160,7 @@ class BaseJsonResponse(Generic[T]):
|
||||
raise HTTPExceptionApi(
|
||||
lang=cls_object.lang,
|
||||
error_code="HTTP_400_BAD_REQUEST",
|
||||
loc=get_line_number_for_error(),
|
||||
)
|
||||
|
||||
|
||||
@@ -198,6 +200,7 @@ class SinglePostgresResponse(BaseJsonResponse[T]):
|
||||
raise HTTPExceptionApi(
|
||||
lang=cls_object.lang,
|
||||
error_code="HTTP_400_BAD_REQUEST",
|
||||
loc=get_line_number_for_error(),
|
||||
)
|
||||
|
||||
instance = super().__new__(cls)
|
||||
@@ -253,6 +256,7 @@ class AlchemyJsonResponse(BaseJsonResponse[T]):
|
||||
raise HTTPExceptionApi(
|
||||
lang=cls_object.lang,
|
||||
error_code="HTTP_400_BAD_REQUEST",
|
||||
loc=get_line_number_for_error(),
|
||||
)
|
||||
|
||||
instance = super().__new__(cls)
|
||||
|
||||
@@ -16,6 +16,7 @@ from sqlalchemy.orm import Query, Session
|
||||
from sqlalchemy.sql.elements import BinaryExpression
|
||||
|
||||
from ApiLibrary import system_arrow
|
||||
from ApiLibrary.common.line_number import get_line_number_for_error
|
||||
from ErrorHandlers.Exceptions.api_exc import HTTPExceptionApi
|
||||
from Services.PostgresDb.Models.response import PostgresResponse
|
||||
|
||||
@@ -137,6 +138,7 @@ class FilterAttributes:
|
||||
raise HTTPExceptionApi(
|
||||
error_code="HTTP_304_NOT_MODIFIED",
|
||||
lang=cls.lang or "tr",
|
||||
loc=get_line_number_for_error(),
|
||||
)
|
||||
|
||||
@classmethod
|
||||
@@ -170,6 +172,7 @@ class FilterAttributes:
|
||||
raise HTTPExceptionApi(
|
||||
error_code="HTTP_304_NOT_MODIFIED",
|
||||
lang=cls.lang or "tr",
|
||||
loc=get_line_number_for_error(),
|
||||
)
|
||||
|
||||
@classmethod
|
||||
@@ -189,6 +192,7 @@ class FilterAttributes:
|
||||
raise HTTPExceptionApi(
|
||||
error_code="HTTP_304_NOT_MODIFIED",
|
||||
lang=cls.lang or "tr",
|
||||
loc=get_line_number_for_error(),
|
||||
)
|
||||
|
||||
@classmethod
|
||||
@@ -220,6 +224,7 @@ class FilterAttributes:
|
||||
raise HTTPExceptionApi(
|
||||
error_code="HTTP_304_NOT_MODIFIED",
|
||||
lang=cls.lang or "tr",
|
||||
loc=get_line_number_for_error(),
|
||||
)
|
||||
|
||||
@classmethod
|
||||
@@ -522,5 +527,5 @@ class FilterAttributes:
|
||||
# """
|
||||
# raise HTTPExceptionApi(
|
||||
# error_code="HTTP_304_NOT_MODIFIED",
|
||||
# lang=cls.lang or "tr",
|
||||
# lang=cls.lang or "tr", loc=get_line_number_for_error()
|
||||
# )
|
||||
|
||||
Reference in New Issue
Block a user