From e903c6484f25d3f0e8de3c4837708fee29e8cccb Mon Sep 17 00:00:00 2001 From: Fabio De Simone Date: Mon, 28 Jan 2019 22:32:47 +0100 Subject: [PATCH] fixed (?) db.py blame steffo if something breaks --- db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db.py b/db.py index e0555117..94a92795 100644 --- a/db.py +++ b/db.py @@ -16,7 +16,7 @@ import re import enum # Both packages have different pip names # noinspection PyPackageRequirements -from discord import User as DiscordUser +# from discord import User as DiscordUser # noinspection PyPackageRequirements from telegram import User as TelegramUser import loldata @@ -689,7 +689,7 @@ class Discord(Base, Mini): return f"" @staticmethod - def create(session: Session, royal_username, discord_user: DiscordUser): + def create(session: Session, royal_username, discord_user: "DiscordUser"): d = session.query(Discord).filter(Discord.discord_id == discord_user.id).first() if d is not None: raise AlreadyExistingError(repr(d))