Add script to list a user's badges

This commit is contained in:
Robert Miles 2020-06-08 16:06:11 -04:00
parent b27e5eb740
commit 40225a6544
1 changed files with 9 additions and 0 deletions

9
list_badges_by_user.py Normal file
View File

@ -0,0 +1,9 @@
import json, os.path, sys
from collections import Counter
with open(os.path.join(os.path.dirname(__file__),"badges.json")) as f: badges = json.load(f)
_, user = sys.argv
for badge in badges[user]:
print(badge)