Example #1
0
 def _async_photo_processing(self):
     #start downloading photo stream
     for cat in PHOTO_CATEGORIES:
         ps = PhotoStream()
         photo_list = ps.request_pop_photo_stream(cat, 0)
         located_photos = ps.get_located_photos(photo_list, cat)
         if len(located_photos) > 0:
             ps.save_photo_stream_to_db(located_photos, cat)