You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The filter_dict, that the reading methods Mastodon.filters or Mastodon.filter return, uses the key expires_at.
But the writing methods Mastodon.filter_create or Mastodon.filter_update use expires_in as a keyword.
If the filter_dict would match the keyword parameters of the methods, it would be easier to use the unpacking operator (**) like (with id removed from the filter_dict)
Mastodon.filter_update(**filter_dict)
The text was updated successfully, but these errors were encountered:
That sounds like a good idea, though probably, we should support both (the mastodon API takes them as expires_in). Not really a problem, though, can just convert the time as appropriate.
However, as far as I know, the filter API as it currently is implemented works only on pre-4.0. So probably it is better to change this after making all 4.0 related updates. I'm currently taking a short break from maintenance to do some other things, dogfooding mastodon.py being one of those things, but I'll get back to it soon enough.
The
filter_dict
, that the reading methodsMastodon.filters
orMastodon.filter
return, uses the keyexpires_at
.But the writing methods
Mastodon.filter_create
orMastodon.filter_update
useexpires_in
as a keyword.If the
filter_dict
would match the keyword parameters of the methods, it would be easier to use the unpacking operator (**) like (withid
removed from the filter_dict)Mastodon.filter_update(**filter_dict)
The text was updated successfully, but these errors were encountered: