mirror of https://github.com/zulip/zulip.git
hipchat import: Only process UserMessage rows for now.
This commit is contained in:
parent
3baac7ddf3
commit
cc55eb8154
|
@ -384,6 +384,11 @@ def write_message_data(realm_id: int,
|
|||
stream_id = int(room_id)
|
||||
data = json.load(open(fn))
|
||||
|
||||
data = [
|
||||
d for d in data
|
||||
if 'UserMessage' in d
|
||||
]
|
||||
|
||||
flat_data = [
|
||||
d['UserMessage']
|
||||
for d in data
|
||||
|
|
Loading…
Reference in New Issue