hipchat import: Only process UserMessage rows for now.

This commit is contained in:
Steve Howell 2018-10-12 19:39:37 +00:00 committed by Tim Abbott
parent 3baac7ddf3
commit cc55eb8154
1 changed files with 5 additions and 0 deletions

View File

@ -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