fix a bug
This commit is contained in:
parent
d212cbafa3
commit
11a3dca264
@ -44,10 +44,7 @@ def compare() -> List[Module]:
|
|||||||
global old_modules_index
|
global old_modules_index
|
||||||
old_modules_index = {i.name: i.latestRelease for i in old_modules}
|
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, "")]
|
data = [i for i in new_modules if i.latestRelease != old_modules_index.get(i.name, "")]
|
||||||
if len(data) > 10:
|
return [] if len(data) > 7 else data
|
||||||
await update_data()
|
|
||||||
data = []
|
|
||||||
return data
|
|
||||||
|
|
||||||
|
|
||||||
async def download(url: str, name: str, pack_name: str) -> (str, str):
|
async def download(url: str, name: str, pack_name: str) -> (str, str):
|
||||||
|
Loading…
Reference in New Issue
Block a user