[3.2][Audio] Database migration fix (#3275)

* Missed this due to the mess of a fork i had

* chore
This commit is contained in:
Draper 2020-01-06 10:28:56 +00:00 committed by Michael H
parent 474bb0904e
commit 62aad10008
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Change timestamp from TEXt to INT during migration

View File

@ -217,7 +217,7 @@ class Audio(commands.Cog):
async def _migrate_config(self, from_version: int, to_version: int) -> None:
database_entries = []
time_now = str(datetime.datetime.now(datetime.timezone.utc))
time_now = int(datetime.datetime.now(datetime.timezone.utc).timestamp())
if from_version == to_version:
return
if from_version < 2 <= to_version: