Update to v2.6.2

This commit is contained in:
Lost-MSth
2021-08-11 18:45:32 +08:00
parent 168e5f0b12
commit 7c3bc99570
16 changed files with 1158 additions and 839 deletions

View File

@@ -30,12 +30,12 @@ def get_song_info(song_id):
return r
def get_songs(limit=-1, offset=0, query={}, sort=[]):
def get_songs(query=None):
# 查询全部歌曲信息,返回字典列表
r = []
with Connect('./database/arcsong.db') as c:
x = Sql.select(c, 'songs', [], limit, offset, query, sort)
x = Sql.select(c, 'songs', [], query)
if x:
for i in x: