From 0f2e23bde20efc0efa6e921a4366b231bbee62c7 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 27 Jul 2018 01:20:54 +0200 Subject: [PATCH] Fix filename underscores --- discordbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discordbot.py b/discordbot.py index 83773ca6..d05bb35d 100644 --- a/discordbot.py +++ b/discordbot.py @@ -602,7 +602,7 @@ async def queue_play_next_video(): session = await loop.run_in_executor(executor, db.Session) 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=enqueuer, - filename=str(now_playing), + filename=now_playing.file, timestamp=datetime.datetime.now()) session.add(played_music) await loop.run_in_executor(executor, session.commit)