Skip to content

Commit

Permalink
fixed clustered browsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cdavis committed Dec 7, 2009
1 parent 5043b42 commit eff965a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/graphite/metrics/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ def tree_json(nodes, base_path, wildcards=False, contexts=False):

def pickle_nodes(nodes, contexts=False):
if contexts:
return pickle.dumps([ { 'metric_path' : n.metric_path, 'context' : n.context } for n in nodes ])
return pickle.dumps([ { 'metric_path' : n.metric_path, 'isLeaf' : n.isLeaf(), 'context' : n.context } for n in nodes ])

else:
return pickle.dumps([ { 'metric_path' : n.metric_path } for n in nodes ])
return pickle.dumps([ { 'metric_path' : n.metric_path, 'isLeaf' : n.isLeaf() } for n in nodes ])


def any(iterable): #python2.4 compatibility
Expand Down

0 comments on commit eff965a

Please sign in to comment.