mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
fix: stats and plalist images
This commit is contained in:
+2
-2
@@ -307,7 +307,7 @@ class FavoritesTable(Base):
|
||||
res = next(result).scalar()
|
||||
|
||||
if res:
|
||||
return res[0]
|
||||
return res
|
||||
|
||||
return 0
|
||||
|
||||
@@ -410,7 +410,7 @@ class PlaylistTable(Base):
|
||||
playlist["userid"] = get_current_userid()
|
||||
result = cls.insert_one(playlist)
|
||||
|
||||
return next(result).lastrowid
|
||||
return result.lastrowid
|
||||
|
||||
@classmethod
|
||||
def check_exists_by_name(cls, name: str):
|
||||
|
||||
Reference in New Issue
Block a user