mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Fix db.py imports, really
This commit is contained in:
parent
36badb1a82
commit
04868e2bfb
1 changed files with 1 additions and 1 deletions
2
db.py
2
db.py
|
@ -162,7 +162,7 @@ class Telegram(Base, Mini):
|
|||
_mini_order = [telegram_id]
|
||||
|
||||
@staticmethod
|
||||
def create(session: Session, royal_username, telegram_user: TelegramUser):
|
||||
def create(session: Session, royal_username, telegram_user: "TelegramUser"):
|
||||
t = session.query(Telegram).filter_by(telegram_id=telegram_user.id).first()
|
||||
if t is not None:
|
||||
raise AlreadyExistingError(repr(t))
|
||||
|
|
Loading…
Reference in a new issue