Fix tests
This commit is contained in:
parent
1d26ecd489
commit
942dd36cd6
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ def print_status(status, width):
|
||||||
content = reblog['content'] if reblog else status['content']
|
content = reblog['content'] if reblog else status['content']
|
||||||
media_attachments = reblog['media_attachments'] if reblog else status['media_attachments']
|
media_attachments = reblog['media_attachments'] if reblog else status['media_attachments']
|
||||||
in_reply_to = status['in_reply_to_id']
|
in_reply_to = status['in_reply_to_id']
|
||||||
poll = reblog['poll'] if reblog else status['poll']
|
poll = reblog.get('poll') if reblog else status.get('poll')
|
||||||
|
|
||||||
time = parse_datetime(status['created_at'])
|
time = parse_datetime(status['created_at'])
|
||||||
time = time.strftime('%Y-%m-%d %H:%M %Z')
|
time = time.strftime('%Y-%m-%d %H:%M %Z')
|
||||||
|
|
Loading…
Reference in a new issue