Skip to content

Commit

Permalink
Fix get_received_texts_iterator
Browse files Browse the repository at this point in the history
It was broken as it was calling itself instead of a get_received_texts() function, and so when trying to iterate over results, it would throw an error
  • Loading branch information
CrystalPea authored Dec 16, 2024
1 parent fc81e09 commit 3096cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notifications_python_client/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def get_received_texts_iterator(self, older_than=None):
yield from received_texts
next_link = result["links"].get("next")
received_text_id = re.search("[0-F]{8}-[0-F]{4}-[0-F]{4}-[0-F]{4}-[0-F]{12}", next_link, re.I).group(0)
result = self.get_received_texts_iterator(older_than=received_text_id)
result = self.get_received_texts(older_than=received_text_id)
received_texts = result.get("received_text_messages")

def get_notification_by_id(self, id):
Expand Down

0 comments on commit 3096cbf

Please sign in to comment.