mirror of
https://github.com/YunoHost/tartiflette.git
synced 2024-09-03 20:06:08 +02:00
Small improvements / fix for unlisted apps
This commit is contained in:
parent
6ef0ea1457
commit
93c283e063
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ class UnlistedApps():
|
||||||
|
|
||||||
apps = []
|
apps = []
|
||||||
|
|
||||||
for i in range(0,6):
|
for i in range(0,7):
|
||||||
|
|
||||||
print("Page " + str(i) + " ... ")
|
print("Page " + str(i) + " ... ")
|
||||||
r = requests.get("https://api.github.com/search/repositories?q=_ynh&sort=updated&per_page=100&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"])
|
apps = sorted(apps, key=lambda x: x["updated_days_ago"])
|
||||||
|
|
||||||
for app in apps:
|
for app in apps:
|
||||||
if app["updated_days_ago"] > 200:
|
if app["updated_days_ago"] > 100:
|
||||||
continue
|
continue
|
||||||
print(app["name"] + " ... " + app["url"])
|
print(app["name"] + " ... " + app["url"] + " ... " + str(app["updated_days_ago"]))
|
||||||
|
|
||||||
with open('apps.json', 'w') as f:
|
with open('apps.json', 'w') as f:
|
||||||
json.dump(apps, f)
|
json.dump(apps, f)
|
||||||
|
|
Loading…
Reference in a new issue