Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Unable to query for key named as 'test' #373

Closed
@bhargavimohan

Description

@bhargavimohan

The following snippet gives an errorTypeError: 'bool' object is not callable

from tinydb import TinyDB, Query,where
from tinydb.operations import delete
db = TinyDB('db.json')

table = db.table('Initializedtables')
table.insert({"test": "value"})
ch = Query()
table.search(ch["test"] == "value")

I believe this is due to the conflicting method named "test" in the Query class, In such cases, how to deal with this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp