1
Fork 0
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:
Steffo 2019-01-28 23:38:34 +01:00
parent 36badb1a82
commit 04868e2bfb

2
db.py
View file

@ -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))