Skip to content
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

[BUG?] return value is not match doc #223

Closed
Cologler opened this issue Aug 4, 2018 · 2 comments
Closed

[BUG?] return value is not match doc #223

Cologler opened this issue Aug 4, 2018 · 2 comments

Comments

@Cologler
Copy link
Contributor

Cologler commented Aug 4, 2018

return a list or a int:

tinydb/tinydb/database.py

Lines 532 to 535 in 058da25

if updated_docs:
return updated_docs
else:
return self.insert(document)

Does this expected?

@eugene-eeo
Copy link
Contributor

Yeah, this seems like a bug. One way to fix it would be to replace line 535 with return [self.insert(document)].

@msiemens
Copy link
Owner

msiemens commented Aug 9, 2018

Thanks for the bug report!

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

No branches or pull requests

3 participants