msiemens / tinydb

TinyDB is a lightweight document oriented database optimized for your happiness :)
https://tinydb.readthedocs.org
MIT License
6.76k stars 534 forks source link

TinyDB 4.8.0 issue #531

Closed deadoverflow closed 1 year ago

deadoverflow commented 1 year ago

Hi, i ran into an issue while preforming db.search()

Here is my code:

db = tinydb.TinyDB('test12.json')
db.insert({'value': 1234})
print(db.search(Query().test == 1234))

But this just returns: image

I am using Python 3.11.4 and tinydb version (4.8.0)

deadoverflow commented 1 year ago

nvm, i used older version of py to when installing tinydb so it behaved weirdly. I fixed it.

msiemens commented 1 year ago

Glad to hear updating Python fixed it! Just out of curiosity: what version of Python did you use?