Fedihosting-Foundation / plemmy

A Python package for accessing the LemmyHttp API
Apache License 2.0
45 stars 15 forks source link

Wrong serialisation of unread_only #26

Closed Pdzly closed 9 months ago

Pdzly commented 9 months ago

httpclientinstance.list_registration_applications(... unread_only=True) gets not correctly formatted to true or false.

Workaround: Falsely put a string "true" or "false" as value instead of the type hinted boolean.

Error: Query deserialize error: provided string was not true or false

Code: lemmy.list_registration_applications(page=0, unread_only="true")

tjkessler commented 9 months ago

@Pdzly let me know if pull https://github.com/LemmyWorld/plemmy/pull/27 fixes your issue!

Pdzly commented 9 months ago

Yeah should fix that.

tjkessler commented 9 months ago

Fantastic, new version is 0.3.11.