mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-24 03:54:20 +00:00
asd
This commit is contained in:
parent
cddc82e15d
commit
5df8518a3f
1 changed files with 2 additions and 2 deletions
|
@ -600,8 +600,8 @@ async def queue_play_next_video():
|
||||||
voice_player.start()
|
voice_player.start()
|
||||||
if now_playing.enqueuer is not None:
|
if now_playing.enqueuer is not None:
|
||||||
session = await loop.run_in_executor(executor, db.Session)
|
session = await loop.run_in_executor(executor, db.Session)
|
||||||
enqueuer = await loop.run_in_executor(executor, db.session.query(db.Discord).filter_by(discord_id=now_playing.enqueuer.id).one_or_none)
|
enqueuer = await loop.run_in_executor(executor, session.query(db.Discord).filter_by(discord_id=now_playing.enqueuer.id).one_or_none)
|
||||||
played_music = db.PlayedMusic(enqueuer=now_playing.enqueuer,
|
played_music = db.PlayedMusic(enqueuer=enqueuer,
|
||||||
filename=str(now_playing),
|
filename=str(now_playing),
|
||||||
timestamp=datetime.datetime.now())
|
timestamp=datetime.datetime.now())
|
||||||
session.add(played_music)
|
session.add(played_music)
|
||||||
|
|
Loading…
Reference in a new issue