kopia lustrzana https://github.com/ihabunek/toot
notifications
rodzic
ab6bf03c19
commit
84f57efed2
|
@ -188,12 +188,7 @@ def list(
|
||||||
if pager:
|
if pager:
|
||||||
print_warning("--pager is not supported alongside --json, ignoring")
|
print_warning("--pager is not supported alongside --json, ignoring")
|
||||||
|
|
||||||
meta = pyjson.dumps({
|
click.echo(response.text)
|
||||||
"prev": _get_paging_params(response, "prev"),
|
|
||||||
"next": _get_paging_params(response, "next"),
|
|
||||||
})
|
|
||||||
|
|
||||||
click.echo(f"""{{"meta": {meta}, "data": {response.text}}}""")
|
|
||||||
return
|
return
|
||||||
|
|
||||||
notifications = from_dict_list(Notification, response.json())
|
notifications = from_dict_list(Notification, response.json())
|
||||||
|
|
Ładowanie…
Reference in New Issue