From 93c283e0635e0e3c90e0b25ed54682f40f798562 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 11 May 2018 16:27:55 +0200 Subject: [PATCH] Small improvements / fix for unlisted apps --- app/models/unlistedapps.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/unlistedapps.py b/app/models/unlistedapps.py index ed6268f..29e9fe0 100644 --- a/app/models/unlistedapps.py +++ b/app/models/unlistedapps.py @@ -16,7 +16,7 @@ class UnlistedApps(): apps = [] - for i in range(0,6): + for i in range(0,7): print("Page " + str(i) + " ... ") r = requests.get("https://api.github.com/search/repositories?q=_ynh&sort=updated&per_page=100&page="+str(i)) @@ -48,9 +48,9 @@ class UnlistedApps(): apps = sorted(apps, key=lambda x: x["updated_days_ago"]) for app in apps: - if app["updated_days_ago"] > 200: + if app["updated_days_ago"] > 100: continue - print(app["name"] + " ... " + app["url"]) + print(app["name"] + " ... " + app["url"] + " ... " + str(app["updated_days_ago"])) with open('apps.json', 'w') as f: json.dump(apps, f)