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

Comments

Projects
None yet
3 participants
@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

This comment has been minimized.

Copy link
Contributor

eugene-eeo commented Aug 4, 2018

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

@msiemens msiemens closed this in b412d8d Aug 9, 2018

@msiemens

This comment has been minimized.

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
You can’t perform that action at this time.