lemon24 / reader

A Python feed reader library.
https://reader.readthedocs.io
BSD 3-Clause "New" or "Revised" License
456 stars 38 forks source link

I can't get the new feed counts #217

Closed lemon24 closed 3 years ago

lemon24 commented 3 years ago

Needed for the reader update progress bar; https://github.com/lemon24/reader/issues/204#issuecomment-780541740.

Types look as follows:

# for symmetry
def get_feeds(..., new: Optional[bool] = None)
def get_feed_counts(..., new: Optional[bool] = None)

# convenience property
class Feed:
    ...
    new: bool

# for compatibility, we'll have to keep also new_only around until 2.0;
# we should also make the arguments kw-only then
# def update_feeds(..., new_only: bool = False)
def update_feeds(..., new: Optional[bool] = None)
def update_feeds_iter(..., new: Optional[bool] = None)
lemon24 commented 3 years ago

Related:

A theme emerges: It's useful to updates feeds filtered by whatever we can get/count them, and the other way around.