def fetch_page_threads(self): page = Key(urlsafe=self.request.get('key')).get() next_url = self.request.get('next_url') fetch_threads(page, next_url) page.last_fetched = datetime.now() page.put()
def fetch_pages_for_user(self): user = Key(urlsafe=self.request.get('key')).get() fetch_pages(user) user.last_fetched = datetime.now() user.put()