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

Repeat `_id`s #7

Closed
rmcgibbo opened this Issue Jul 2, 2014 · 2 comments

Comments

2 participants
@rmcgibbo

rmcgibbo commented Jul 2, 2014

I seem to be getting multiple repeated _ids when the db is opened and closed repeatedly, and each session only inserts one entry. Is this expected?

>>> TinyDB('db.json').insert({'x': 1})
>>> TinyDB('db.json').insert({'x': 1})
>>> TinyDB('db.json').all()
[{u'_id': 0, u'x': 1}, {u'_id': 0, u'x': 1}]

This is with 1.2.0 from pypi

$ pip freeze | grep tinydb
tinydb==1.2.0

msiemens added a commit that referenced this issue Jul 2, 2014

@msiemens msiemens closed this in 8fd08fb Jul 2, 2014

@rmcgibbo

This comment has been minimized.

Show comment
Hide comment
@rmcgibbo

rmcgibbo commented Jul 2, 2014

Awesome!

@msiemens

This comment has been minimized.

Show comment
Hide comment
@msiemens

msiemens Jul 2, 2014

Owner

Thanks for reporting this issue! I've just uploaded v1.3.0 where this is fixed (along with some other changes) :)

Owner

msiemens commented Jul 2, 2014

Thanks for reporting this issue! I've just uploaded v1.3.0 where this is fixed (along with some other changes) :)

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