From 11a3dca264885828b395b81bfa27670756586671 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Mon, 8 Aug 2022 14:45:35 +0800 Subject: [PATCH] fix a bug --- defs/source.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/defs/source.py b/defs/source.py index efb34f0..4a78fe2 100644 --- a/defs/source.py +++ b/defs/source.py @@ -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):