fix a bug

This commit is contained in:
xtaodada 2022-08-08 14:45:35 +08:00
parent d212cbafa3
commit 11a3dca264
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -44,10 +44,7 @@ def compare() -> List[Module]:
global old_modules_index
old_modules_index = {i.name: i.latestRelease for i in old_modules}
data = [i for i in new_modules if i.latestRelease != old_modules_index.get(i.name, "")]
if len(data) > 10:
await update_data()
data = []
return data
return [] if len(data) > 7 else data
async def download(url: str, name: str, pack_name: str) -> (str, str):