Skip to content

Commit

Permalink
🔀 Merge pull request #78 from davep/fix-group-counts
Browse files Browse the repository at this point in the history
Fix the collection count for groups
  • Loading branch information
davep authored Jan 11, 2025
2 parents 8cb423d + 1bfa4bc commit fb96cdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
- Added handling of the Raindrop.IO API rate limit when downloading all the
data. ([#22](https://github.com/davep/braindrop/issues/22),
[#72](https://github.com/davep/braindrop/issues/72))
- Fixed a problem where groups were showing the total collection count
rather than the count of collections in that group.
([#77](https://github.com/davep/braindrop/issues/77))

## v0.4.0

Expand Down
2 changes: 1 addition & 1 deletion src/braindrop/app/widgets/navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def _main_navigation(self) -> None:
return
# Populate the groups.
for group in self.data.user.groups:
self.add_option(Title(f"{group.title} ({len(self.data.collections)})"))
self.add_option(Title(f"{group.title} ({len(group.collections)})"))
for collection in group.collections:
self._add_children_for(
self._add_collection(self.data.collection(collection))
Expand Down

0 comments on commit fb96cdd

Please sign in to comment.