[Enhance][Bug fix] Improve setting file & ...

- Fix a small bug that `best30` of API cannot have scores whose songs are not in database
- At present the setting file can be a module or a file with some of options
- Limiter can have multiple rules together now
This commit is contained in:
Lost-MSth
2022-10-16 15:49:49 +08:00
parent 68a83a29d2
commit ba36190f30
23 changed files with 458 additions and 86 deletions

View File

@@ -207,11 +207,6 @@ def main(path='./'):
time int,
primary key(user_id, song_id, file_name)
);''')
# c.execute('''create table if not exists user_download(user_id int,
# time int,
# token text,
# primary key(user_id, time, token)
# );''')
c.execute('''create table if not exists item(item_id text,
type text,
is_available int,