mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 21:24:42 +00:00
fix: stats and plalist images
This commit is contained in:
1 parent
620974561c
commit
bcd4f6688c
3 files changed
+22
-7
No files matched your search
+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