trust mark for author

This commit is contained in:
Dr.Lt.Data
2024-06-09 17:20:15 +09:00
parent 1db1ca5ce6
commit b9f38f0d9c
5 changed files with 14 additions and 3 deletions

View File

@@ -208,9 +208,11 @@ async def populate_github_stats(json_obj, json_obj_github):
if url in json_obj_github:
json_obj['custom_nodes'][i]['stars'] = json_obj_github[url]['stars']
json_obj['custom_nodes'][i]['last_update'] = json_obj_github[url]['last_update']
json_obj['custom_nodes'][i]['trust'] = json_obj_github[url]['author_account_age_days'] > 180
else:
json_obj['custom_nodes'][i]['stars'] = -1
json_obj['custom_nodes'][i]['last_update'] = -1
json_obj['custom_nodes'][i]['trust'] = False
return json_obj