1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-30 15:04:18 +00:00

this might work

This commit is contained in:
Steffo 2018-07-31 23:33:07 +02:00
parent 5107a58028
commit fef7ec4c94

View file

@ -279,7 +279,7 @@ def requires_voice_client(func):
def requires_rygdb(func, optional=False): def requires_rygdb(func, optional=False):
async def new_func(channel: discord.Channel, author: discord.Member, params: typing.List[str], *args, **kwargs): async def new_func(channel: discord.Channel, author: discord.Member, params: typing.List[str], *args, **kwargs):
session = await loop.run_in_executor(executor, db.Session) session = await loop.run_in_executor(executor, db.Session.__init__)
dbuser = await loop.run_in_executor(executor, dbuser = await loop.run_in_executor(executor,
session.query(db.Discord) session.query(db.Discord)
.filter_by(discord_id=author.id) .filter_by(discord_id=author.id)