fixed /users being double json encoded
authorForrest Voight <forrest@forre.st>
Fri, 13 Apr 2012 16:37:52 +0000 (12:37 -0400)
committerForrest Voight <forrest@forre.st>
Fri, 13 Apr 2012 16:38:05 +0000 (12:38 -0400)
p2pool/web.py

index df393e8..472809b 100644 (file)
@@ -54,7 +54,7 @@ def get_web_root(tracker, current_work, current_work2, get_current_txouts, datad
         res = {}
         for script in sorted(weights, key=lambda s: weights[s]):
             res[bitcoin_data.script2_to_human(script, net.PARENT)] = weights[script]/total_weight
-        return json.dumps(res)
+        return res
     
     def get_current_scaled_txouts(scale, trunc=0):
         txouts = get_current_txouts()