kopia lustrzana https://github.com/ihabunek/toot
Fix last ID not saving when using --json
rodzic
eb175029a8
commit
54a111d669
|
@ -184,10 +184,11 @@ def post(
|
||||||
poll_hide_totals=poll_hide_totals,
|
poll_hide_totals=poll_hide_totals,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
status = response.json()
|
||||||
|
|
||||||
if json:
|
if json:
|
||||||
click.echo(response.text)
|
click.echo(response.text)
|
||||||
else:
|
else:
|
||||||
status = response.json()
|
|
||||||
if "scheduled_at" in status:
|
if "scheduled_at" in status:
|
||||||
scheduled_at = parse_datetime(status["scheduled_at"])
|
scheduled_at = parse_datetime(status["scheduled_at"])
|
||||||
scheduled_at = datetime.strftime(scheduled_at, "%Y-%m-%d %H:%M:%S%z")
|
scheduled_at = datetime.strftime(scheduled_at, "%Y-%m-%d %H:%M:%S%z")
|
||||||
|
|
Ładowanie…
Reference in New Issue