Created
August 19, 2014 11:50
-
-
Save lu911/dbfda8efce04c9336431 to your computer and use it in GitHub Desktop.
item.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query = query.with_entities(Item.id).paginate(page, 60, False) | |
_items = [] | |
for item in query.items: | |
item = Item.get_by_id(int(item[0])) | |
if item: | |
_items.append(item.serialize()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment