def _process_digest_statuses(
        statuses,
        digest_start_time,
        digest_end_time,
        error_info,
        dev_mode,
        timezone=None):
    if not dev_mode:
      # Filter them for the ones that fall in the window
      digest_statuses = [
          s for s in statuses
          if s.created_at_in_seconds <= digest_end_time and
              digest_start_time > s.created_at_in_seconds
      ]
    else:
      digest_statuses = statuses

    # Order them in chronological order
    digest_statuses.sort(
        lambda x, y: int(x.created_at_in_seconds - y.created_at_in_seconds))
    if dev_mode:
        digest_statuses.reverse()

    # Group them by username
    status_groups = []
    for username, statuses in itertools.groupby(
        digest_statuses, lambda status: status.user.id):
        statuses = list(statuses)
        status_groups.append(twitterdisplay.DisplayStatusGroup(
            user=statuses[0].user,
            statuses=statuses,
            thumbnail_size=thumbnails.SMALL_THUMBNAIL,
            timezone=timezone))

    return status_groups, error_info
dataset/ETHPy150Open mihaip/streamspigot/app/tweetdigest/data.py/_process_digest_statuses/swapped operands of `>`