Skip to content

Conversation

@RGB-loop
Copy link
Contributor

@RGB-loop RGB-loop commented Dec 7, 2025

Problem

The u.buffer() method returns a list[str] (list of blob IDs). The code incorrectly calls len() twice:

  • First len(u.buffer(...)) makes left an integer
  • Then len(left) tries to call len() on an integer, causing TypeError

Solution

Remove the redundant len() call, keeping left as the count directly. Use left in the condition and print statement.

Testing

  • Verified the buffer API returns list[str]
  • Code now properly checks and displays the remaining buffer count

@gusye1234 gusye1234 merged commit 0a3a016 into memodb-io:main Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants