Created
March 18, 2015 16:24
-
-
Save jdunne-kaplan/9be48d095cf94f2e1a2d to your computer and use it in GitHub Desktop.
Find deck urls by deck ids
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
import models | |
from google.appengine.ext import ndb | |
ids = ['TODO'] | |
keys = [ndb.Key(models.SlideDeck, id) for id in ids] | |
decks = ndb.get_multi(keys) | |
for deck in decks: | |
if deck is None: continue | |
print deck.deck_id, deck.deck_url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment