Skip to content

Commit

Permalink
Rework getdevicelog() to handle fetching more when "has_next" is True
Browse files Browse the repository at this point in the history
  • Loading branch information
uzlonewolf committed Dec 12, 2022
1 parent 1cffdde commit d67862e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tinytuya/Cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,6 @@ def getdevicelog(self, deviceid=None, start=None, end=None, evtype=None, size=0,
(not want_size or len(result['logs']) < size) and
'next_row_key' in result and result['next_row_key'] and next_row_key != result['next_row_key']
):
log.warning( '%r %r', len(result['logs']), max_fetches)
again = False
max_fetches -= 1
fetches += 1
Expand Down

0 comments on commit d67862e

Please sign in to comment.