mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
this might work
This commit is contained in:
parent
5107a58028
commit
fef7ec4c94
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,7 @@ def requires_voice_client(func):
|
|||
|
||||
def requires_rygdb(func, optional=False):
|
||||
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,
|
||||
session.query(db.Discord)
|
||||
.filter_by(discord_id=author.id)
|
||||
|
|
Loading…
Reference in a new issue