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):