Skip to content

Commit

Permalink
Fix contrib/graph/graph2.py to handle FrozenDict
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Feb 16, 2015
1 parent 8a59915 commit a5ad6f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/graph/graph2.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import argparse

from synapse.events import FrozenEvent
from synapse.util.frozenutils import unfreeze


def make_graph(db_name, room_id, file_prefix, limit):
Expand Down Expand Up @@ -70,7 +71,7 @@ def make_graph(db_name, room_id, file_prefix, limit):
float(event.origin_server_ts) / 1000
).strftime('%Y-%m-%d %H:%M:%S,%f')

content = json.dumps(event.get_dict()["content"])
content = json.dumps(unfreeze(event.get_dict()["content"]))

label = (
"<"
Expand Down

0 comments on commit a5ad6f8

Please sign in to comment.