Fix last ID not saving when using --json

pull/514/head
Ivan Habunek 2024-11-27 19:46:18 +01:00
rodzic eb175029a8
commit 54a111d669
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 01DB3DD0D824504C
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -184,10 +184,11 @@ def post(
poll_hide_totals=poll_hide_totals,
)
status = response.json()
if json:
click.echo(response.text)
else:
status = response.json()
if "scheduled_at" in status:
scheduled_at = parse_datetime(status["scheduled_at"])
scheduled_at = datetime.strftime(scheduled_at, "%Y-%m-%d %H:%M:%S%z")