@classmethod
  def _GetShareInfo(cls, activity):
    episode_dates = []
    num_shares = 0

    args_dict = json.loads(activity.json)
    for ep_dict in args_dict['episodes']:
      # Extract timestamps from episode id so that we don't need to query for episode object.
      ts, dev_id, uniquifier = Episode.DeconstructEpisodeId(ep_dict['episode_id'])
      episode_dates.append(date.fromtimestamp(ts))

      num_shares += len(ep_dict['photo_ids'])

    return (episode_dates, num_shares)
Debug information
dataset/ETHPy150Open viewfinderco/viewfinder/backend/op/alert_manager.py/AlertManager._GetShareInfo--crossover with--dataset/ETHPy150Open bigmlcom/python/bigml/tests/test_20_rename_duplicated_names.py/TestDuplicatedFields.setup