Skip to content

Instantly share code, notes, and snippets.

@lu911
Created August 19, 2014 11:50
Show Gist options
  • Save lu911/dbfda8efce04c9336431 to your computer and use it in GitHub Desktop.
Save lu911/dbfda8efce04c9336431 to your computer and use it in GitHub Desktop.
item.py
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