Skip to content

Commit 0be7b69

Browse files
committed
sort by last activity
1 parent 48983cf commit 0be7b69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

private-sec-reporting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ async def main():
6060

6161
results = await asyncio.gather(*[task for _,_,_, task in tasks])
6262

63-
for (repo, org, repo_name, _), has_vuln_reporting in zip(tasks, results):
63+
for (repo, org, repo_name, _), has_vuln_reporting in sorted(zip(tasks, results), key=lambda x: x[0][0]['pushed_at'], reverse=True):
6464
last_activity = repo['pushed_at']
6565
last_activity_date = datetime.fromisoformat(last_activity).strftime("%Y-%m-%d")
6666
last_activity_ago_human = humanize.naturaltime(datetime.now(datetime.fromisoformat(last_activity).tzinfo) - datetime.fromisoformat(last_activity))

0 commit comments

Comments
 (0)