mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 10:29:23 -05:00
Fix contrib/graph/graph2.py to handle FrozenDict
This commit is contained in:
parent
8a59915d7d
commit
a5ad6f862c
@ -21,6 +21,7 @@ import datetime
|
||||
import argparse
|
||||
|
||||
from synapse.events import FrozenEvent
|
||||
from synapse.util.frozenutils import unfreeze
|
||||
|
||||
|
||||
def make_graph(db_name, room_id, file_prefix, limit):
|
||||
@ -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 = (
|
||||
"<"
|
||||
|
Loading…
Reference in New Issue
Block a user