1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Fix db.py imports

This commit is contained in:
Steffo 2019-01-28 23:36:45 +01:00
parent 9c537480a5
commit 6df65c0f3e

12
db.py
View file

@ -1,7 +1,6 @@
import datetime import datetime
import logging import logging
import os import os
import typing
import coloredlogs import coloredlogs
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, relationship from sqlalchemy.orm import sessionmaker, relationship
@ -14,17 +13,18 @@ import errors
from errors import NotFoundError, AlreadyExistingError, PrivateError from errors import NotFoundError, AlreadyExistingError, PrivateError
import re import re
import enum import enum
# Both packages have different pip names
# noinspection PyPackageRequirements
# from discord import User as DiscordUser
# noinspection PyPackageRequirements
from telegram import User as TelegramUser
import loldata import loldata
from dirty import Dirty, DirtyDelta from dirty import Dirty, DirtyDelta
import sql_queries import sql_queries
from flask import escape from flask import escape
import libgravatar import libgravatar
import configparser import configparser
import typing
if typing.TYPE_CHECKING:
# noinspection PyPackageRequirements
from discord import User as DiscordUser
# noinspection PyPackageRequirements
from telegram import User as TelegramUser
# Init the config reader # Init the config reader
config = configparser.ConfigParser() config = configparser.ConfigParser()