LA_*_*LA_ 1 google-app-engine google-cloud-datastore
我有以下代码,效果很好:
comments = PersonComment.gql('WHERE ANCESTOR IS :parent AND verified=True ORDER BY added DESC', parent=person_key).fetch(PAGE_SIZE_COMMENTS+1, (page)*PAGE_SIZE_COMMENTS)
Run Code Online (Sandbox Code Playgroud)
我想用以下内容替换:
comments = db.Query(PersonComment)
comments.ancestor(person_key)
comments.filter('verified = ', True)
comments.order('-added')
comments.fetch(PAGE_SIZE_COMMENTS+1, (page)*PAGE_SIZE_COMMENTS)
Run Code Online (Sandbox Code Playgroud)
但它不起作用.有什么问题?
| 归档时间: |
|
| 查看次数: |
99 次 |
| 最近记录: |