New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update without condition #157

Closed
just-an-dev opened this Issue Sep 12, 2017 · 2 comments

Comments

2 participants
@just-an-dev

just-an-dev commented Sep 12, 2017

i try to make an update of an entire table, and i have an error.

 File "/Library/Python/2.7/site-packages/tinydb/database.py", line 408, in update
    cond, eids
  File "/Library/Python/2.7/site-packages/tinydb/database.py", line 258, in process_elements
    if cond(data[eid]):
TypeError: 'NoneType' object is not callable

i use TinyDB version 3.5

@msiemens msiemens closed this in a254a3d Sep 13, 2017

@msiemens

This comment has been minimized.

Show comment
Hide comment
@msiemens

msiemens Sep 13, 2017

Owner

Thanks for the tip! It seems intuitive to just call db.update(fields) to update all elements to I've added this option.

Owner

msiemens commented Sep 13, 2017

Thanks for the tip! It seems intuitive to just call db.update(fields) to update all elements to I've added this option.

@just-an-dev

This comment has been minimized.

Show comment
Hide comment
@just-an-dev

just-an-dev commented Sep 14, 2017

thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment