def analytics_upageviews_by_revisions(revisions):
 if (not revisions):
  return {}
 revision_ids = [r.id for r in revisions]
 start_date = min((r.created for r in revisions))
 return analytics_upageviews(revision_ids, start_date)

def analytics_upageviews_by_revisions ( revisions ) : if ( not revisions ) : return { } revision_ids = [ r . id for r in revisions ] start_date = min ( ( r . created for r in revisions ) ) return analytics_upageviews ( revision_ids , start_date )
given a sequence of revision objects .