https://bugzilla.wikimedia.org/show_bug.cgi?id=37463
Krenair <kren...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kren...@gmail.com --- Comment #1 from Krenair <kren...@gmail.com> 2012-06-11 15:47:30 UTC --- Number of open changes per project: username = 'krenair' import os, json, operator lines = os.popen('ssh ' + username + '@gerrit.wikimedia.org -p 29418 gerrit query status:open --format json').read().splitlines() projects = {} for line in lines: data = json.loads(line) if 'project' not in data: continue elif data['project'] not in projects: projects[data['project']] = 1 else: projects[data['project']] += 1 for project, unmergedcount in sorted(projects.iteritems(), key=operator.itemgetter(1), reverse=True): print project, unmergedcount -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l