reader
reader copied to clipboard
EntryCounts.unread/unimportant
https://github.com/lemon24/reader/blob/7c4df8af5cfe9b5282e46c019950366893854c75/src/reader/_app/init.py#L402-L408
Also useful here: https://github.com/dbrennand/Feederbot/issues/16
Some 2024 notes:
- Now that Entry.important is tri-state (bool or None),
.unimportantcannot be atotal - importantproperty anymore, it needs to come from the database; "unimportant" meansimportant == False, because that's what mark_entry_as_unimportant() defines it as. - The same fields/properties should be added to EntrySearchCounts.
- The
avg{1m,3m,1y}properties can be ignored for now, following the work in https://github.com/lemon24/reader/issues/254#issuecomment-1807064610 / this gist / https://github.com/lemon24/reader/issues/306#issuecomment-1694655504 I am relatively convinced the averages API is not powerful enough, and should be deprecated in 4.0.
Remaining work: add unread property (I mistitled https://github.com/lemon24/reader/commit/c8678236ec515820458df4cad8790adcf628944b).
Remaining work: add
unreadproperty (I mistitled c867823).
Looking at this issue - by the latest comment, do you mean adding unread to the src/reader/types.py file?
Looking at this issue - by the latest comment, do you mean adding
unreadto thesrc/reader/types.pyfile?
Yup.
Hi! I would like to finish this off, however I need a few pointers if that's alright. Should I turn the read property into a tri-state(bool or None) one like the important property, or introduce a new one?
Hi @cgkoutzigiannis , thank you for looking into this!
(I'll be away for another week, please excuse the delayed responses.)
For unread, a @property returning total minus read should suffice, since there's no plan to make read a tristate (unlike with important, "explicitly marked as unread" is not very useful); also see previous two comments for details.