1. Miki Tebeka
  2. appengine-py-demo

Commits

Miki Tebeka  committed f6d4d3b Merge

Merge user-urls

  • Participants
  • Parent commits 7cf35bf, 2949c39
  • Branches queue

Comments (0)

Files changed (1)

File shortie.py

View file
 
 def user_urls(user, max=100):
     '''Last 100 urls for user.'''
-    try:
-        return Url.all().filter('user =' , user).order('-created').fetch(max)
-    except db.NeedIndexError: # AppEngine initial indexing might take a while
-        log.error('Not indexed yet')
-        return []
+    return Url.all().filter('user =' , user).order('-created').fetch(max)
 
 def fix_url(url):
     '''Fix url by appending http:// if needed.