default migrations value to -1

+ tiny fixes
This commit is contained in:
mungai-njoroge
2023-07-30 15:06:56 +03:00
parent 50aa971972
commit d9688455fb
5 changed files with 20 additions and 20 deletions
+2 -1
View File
@@ -33,7 +33,7 @@ class Track:
title: str
track: int
trackhash: str
last_mod: float
last_mod: str | int
filetype: str = ""
image: str = ""
@@ -46,6 +46,7 @@ class Track:
def __post_init__(self):
self.og_title = self.title
self.og_album = self.album
self.last_mod = int(self.last_mod)
if self.artist is not None:
artists = split_artists(self.artist)