mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[3.2][Audio] Database migration fix (#3275)
* Missed this due to the mess of a fork i had * chore
This commit is contained in:
parent
474bb0904e
commit
62aad10008
1
changelog.d/audio/3275.misc.1.rst
Normal file
1
changelog.d/audio/3275.misc.1.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
Change timestamp from TEXt to INT during migration
|
||||||
@ -217,7 +217,7 @@ class Audio(commands.Cog):
|
|||||||
|
|
||||||
async def _migrate_config(self, from_version: int, to_version: int) -> None:
|
async def _migrate_config(self, from_version: int, to_version: int) -> None:
|
||||||
database_entries = []
|
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:
|
if from_version == to_version:
|
||||||
return
|
return
|
||||||
if from_version < 2 <= to_version:
|
if from_version < 2 <= to_version:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user