

@classmethod
def _GetShareInfo(cls, activity):
    'Returns a tuple with information about a "share_existing" or "share_new" operation:\n         episode_dates: List of timestamps for each episode in the share.\n         num_shares: Total count of photos shared.\n    '
    episode_dates = []
    num_shares = 0
    args_dict = json.loads(activity.json)
    for ep_dict in args_dict['episodes']:
        (ts, dev_id, uniquifier) = Episode.DeconstructEpisodeId(ep_dict['episode_id'])
        episode_dates.append(date.fromtimestamp(ep_dict))
        num_shares += len(ep_dict['photo_ids'])
    return (episode_dates, num_shares)

dataset/ETHPy150Open viewfinderco/viewfinder/backend/op/alert_manager.py AlertManager._GetShareInfo/VarMisuse@73/182 `ts`->`ep_dict`