From 2596dd8c0be777f8807868e179fc6176d58e5ba5 Mon Sep 17 00:00:00 2001 From: md678685 Date: Thu, 1 Jun 2017 21:58:13 +0100 Subject: [PATCH] merging PR #462: Dump meritocracy data alongside voters.json https://github.com/chaosbot/Chaos/pull/462: Dump meritocracy data alongside voters.json Description: Will be dropped in the root of the web server when generated. :ok_woman: PR passed with a vote of 17 for and 0 against, a weighted total of 16.5 and a threshold of 6.5, and a current meritocracy review. Vote record: @Artoria2e5: 1 @Leigende: 1 @MUCHZER: 1 @Moussto: 1 @PlasmaPower: 1 @Smittyvb: 1 @Swizz: 1 @andrewda: 1 @davidak: 1 @eukaryote31: 1 @flibustier: 1 @hongaar: 1 @ike709: 1 @md678685: 1 @qgustavor: 1 @rhengles: 1 @rudehn: 1 --- cron/poll_pull_requests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cron/poll_pull_requests.py b/cron/poll_pull_requests.py index 8d62e2aa..f2536702 100644 --- a/cron/poll_pull_requests.py +++ b/cron/poll_pull_requests.py @@ -45,6 +45,9 @@ def poll_pull_requests(api): meritocracy = top_voters | top_contributors __log.info("generated meritocracy: " + str(meritocracy)) + with open('server/meritocracy.json', 'w') as mfp: + json.dump(meritocracy, mfp) + needs_update = False for pr in prs: pr_num = pr["number"]