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
since post.meta('devto') is text, it will always be true, regardless of the value it was set.
(Pseudo-)Boolean keywords like this should probably have an "off" switch.
Locally, I changed mine to:
to_post= [postforpostinpostsifpost.title() notindevto_titlesand (post.meta('devto').lower() in ["yes", "true"])]
I don't know if that's the best way to handle it. Happy to discuss solutions and make a pull request.
The text was updated successfully, but these errors were encountered:
I was a bit confused with the
medium
anddevto
plugins(not sure other plugins have this problem).
The documentation says:
But I have a hard time remembering all the keywords, so I set the standard keywords to
This will lead medium and devto to publish all articles, due to something that I'd say is unintuitive and should be changed to improve usability.
The code says:
plugins/v8/devto/devto_plugin.py
Line 67 in c930557
plugins/v8/medium/medium_plugin.py
Line 69 in c930557
since
post.meta('devto')
is text, it will always be true, regardless of the value it was set.(Pseudo-)Boolean keywords like this should probably have an "off" switch.
Locally, I changed mine to:
I don't know if that's the best way to handle it. Happy to discuss solutions and make a pull request.
The text was updated successfully, but these errors were encountered: