以下语句生成错误消息AttributeError: 'list' object has no attribute 'filter'。我认为filter
之后query
完全可以。当时有什么问题?提前致谢。
purchases = Purchase.query(Purchase.date>=startDate, Purchase.date<endDate)
...
purchases = purchases.filter(Purchase.account==member.account,
ndb.OR(Purchase.consumedMode=='bidding',
Purchase.consumedMode=='purchasing')).fetch()