Skip to content

Commit

Permalink
Added length in a subscription for channels following
Browse files Browse the repository at this point in the history
  • Loading branch information
MujyKun committed Feb 13, 2023
1 parent 5387243 commit a92de74
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion IreneAPIWrapper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
__title__ = "IreneAPIWrapper"
__author__ = "MujyKun"
__license__ = "MIT"
__version__ = "2.3.1"
__version__ = "2.3.2"
3 changes: 3 additions & 0 deletions IreneAPIWrapper/models/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ def __init__(
def __iter__(self):
return self._followed.__iter__()

def __len__(self):
return len(self._followed)

def __eq__(self, other):
return self.id == other.id

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "IreneAPIWrapper"
version = "2.3.1"
version = "2.3.2"
description = "The Wrapper for the Websocket and REST API of Irene."
authors = ["MujyKun <mujy@irenebot.com>"]
classifiers = [
Expand Down

0 comments on commit a92de74

Please sign in to comment.