git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
af8b7f9
)
fixed /users being double json encoded
author
Forrest Voight
<forrest@forre.st>
Fri, 13 Apr 2012 16:37:52 +0000 (12:37 -0400)
committer
Forrest Voight
<forrest@forre.st>
Fri, 13 Apr 2012 16:38:05 +0000 (12:38 -0400)
p2pool/web.py
patch
|
blob
|
history
diff --git
a/p2pool/web.py
b/p2pool/web.py
index
df393e8
..
472809b
100644
(file)
--- a/
p2pool/web.py
+++ b/
p2pool/web.py
@@
-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()