@gen.coroutine
def HidePhotos(client, obj_store, user_id, device_id, request):
 request['user_id'] = user_id
 (yield gen.Task(Operation.CreateAndExecute, client, user_id, device_id, 'HidePhotosOperation.Execute', request))
 num_photos = sum((len(ep_dict['photo_ids']) for ep_dict in request['episodes']))
 logging.info(('HIDE PHOTOS: user: %d, device: %d, %d photos' % (user_id, device_id, num_photos)))
 raise gen.Return({})

@ gen . coroutine def HidePhotos ( client , obj_store , user_id , device_id , request ) : request [ 'user_id' ] = user_id ( yield gen . Task ( Operation . CreateAndExecute , client , user_id , device_id , 'HidePhotosOperation.Execute' , request ) ) num_photos = sum ( ( len ( ep_dict [ 'photo_ids' ] ) for ep_dict in request [ 'episodes' ] ) ) logging . info ( ( 'HIDE PHOTOS: user: %d, device: %d, %d photos' % ( user_id , device_id , num_photos ) ) ) raise gen . Return ( { } )
hides photos from a users personal library and inbox view .