Update to Twitcher

Fixed error in iter functions, where it would never return the last item
in the iteration.
This commit is contained in:
Mario Steele 2026-03-08 13:14:52 -05:00
parent 582d50ec2d
commit e586141d4d
35 changed files with 52 additions and 52 deletions

View file

@ -93,7 +93,7 @@ class Response extends TwitchData:
func _iter_get(iter: Variant) -> Variant:
if data.size() - 1 == _cur_iter && _has_pagination():
if data.size() == _cur_iter && _has_pagination():
await next_page()
return iter
@ -277,4 +277,4 @@ class Opt extends TwitchData:
if d.get("broadcaster_id", null) != null:
result.broadcaster_id = d["broadcaster_id"]
return result