Skip to content

Commit

Permalink
Merge pull request #31 from Linusp/dev
Browse files Browse the repository at this point in the history
Optimized `InoreaderClient.fetch_articles` and release v0.7.1
  • Loading branch information
Linusp authored May 24, 2024
2 parents 0c8a076 + 05e3f5b commit f3361bf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELOG

## v0.7.1

Changed

- Optimized `InoreaderClient.fetch_articles` for less API calls when tags are specified

## v0.7.0

Removed
Expand Down
7 changes: 5 additions & 2 deletions inoreader/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,11 @@ def fetch_articles(
):
self.check_token()

if not stream_id and folder:
stream_id = self.GENERAL_TAG_TEMPLATE.format(folder)
if not stream_id:
if folder:
stream_id = self.GENERAL_TAG_TEMPLATE.format(folder)
elif tags:
stream_id = self.GENERAL_TAG_TEMPLATE.format(tags[0])

params = {"stream_id": stream_id, "n": n, "c": str(uuid4())}
if unread:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "python-inoreader"
version = "0.7.0"
version = "0.7.1"
description = "Python wrapper of Inoreader API"
authors = [
{name = "Linusp", email = "[email protected]"},
Expand Down

0 comments on commit f3361bf

Please sign in to comment.