🔥 Remove core/sqlmodel

This commit is contained in:
luoshuijs 2023-10-25 17:23:01 +08:00 committed by GitHub
parent 33de7c6158
commit 9503759d21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 3 additions and 6 deletions

View File

@ -1,11 +1,11 @@
from typing import List from typing import List
from sqlmodel import select from sqlmodel import select
from sqlmodel.ext.asyncio.session import AsyncSession
from core.base_service import BaseService from core.base_service import BaseService
from core.dependence.database import Database from core.dependence.database import Database
from core.services.quiz.models import AnswerDB, QuestionDB from core.services.quiz.models import AnswerDB, QuestionDB
from core.sqlmodel.session import AsyncSession
__all__ = ("QuizRepository",) __all__ = ("QuizRepository",)

View File

@ -1,3 +0,0 @@
from gram_core.sqlmodel.session import AsyncSession
__all__ = ("AsyncSession",)

@ -1 +1 @@
Subproject commit 0db711d96a3f479b0b5970b1cf26b9a6be3e2404 Subproject commit 94dc4773d9dcc70fb12e58356bea4288bc82f1f6

View File

@ -14,6 +14,7 @@ from simnet.utils.player import recognize_game_biz
from sqlalchemy.exc import SQLAlchemyError from sqlalchemy.exc import SQLAlchemyError
from sqlalchemy.orm.exc import StaleDataError from sqlalchemy.orm.exc import StaleDataError
from sqlmodel import BigInteger, Column, DateTime, Field, Index, Integer, SQLModel, String, delete, func, select from sqlmodel import BigInteger, Column, DateTime, Field, Index, Integer, SQLModel, String, delete, func, select
from sqlmodel.ext.asyncio.session import AsyncSession
from telegram.ext import ContextTypes from telegram.ext import ContextTypes
from core.basemodel import RegionEnum from core.basemodel import RegionEnum
@ -25,7 +26,6 @@ from core.services.cookies.services import CookiesService, PublicCookiesService
from core.services.devices import DevicesService from core.services.devices import DevicesService
from core.services.players.services import PlayersService from core.services.players.services import PlayersService
from core.services.users.services import UserService from core.services.users.services import UserService
from core.sqlmodel.session import AsyncSession
from gram_core.services.cookies.models import CookiesStatusEnum from gram_core.services.cookies.models import CookiesStatusEnum
from utils.log import logger from utils.log import logger