【发布时间】:2019-04-29 14:39:37
【问题描述】:
queries = [query for query in QueryHistory.query().order(-QueryHistory.date)]
if(len(queries) > constants.QUERY_LIMIT_SIZE):
que = queries[constants.QUERY_LIMIT_SIZE:]
list_of_keys = que.fetch(keys_only = True)
ndb.delete_multi(list_of_keys)
从数据存储区删除数据时出现 AttributeError: 'list' object has no attribute 'fetch' 错误。如果有人有解决方案,请发表评论。
【问题讨论】:
标签: python python-2.7 google-app-engine flash