Я получаю TypeError: Cannot filter a non-Node argument; received False
во второй строке следующего кода (query1 = ...
).
def checkExits(EVname,EVmanufacturer,EVyear):
query1 = EVModel.query(EVModel.name == EVname).fetch()
query2 = EVModel.query(EVModel.manufacturer == EVmanufacturer).fetch()
query3 = EVModel.query(EVModel.year == EVyear).fetch()
query = ndb.get_multi(set(query1).intersection(query2.intersection(query3)))
if len(query) == 0:
return True
else:
return False