Fix reducer argument in pastebin exercise (#85)

pull/89/head
Arash Rouhani 2017-06-14 02:43:11 +02:00 committed by Donne Martin
parent 17e5fb7d32
commit cc48058662
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ class HitCounts(MRJob):
period = self.extract_year_month(line) period = self.extract_year_month(line)
yield (period, url), 1 yield (period, url), 1
def reducer(self, key, value): def reducer(self, key, values):
"""Sum values for each key. """Sum values for each key.
(2016-01, url0), 2 (2016-01, url0), 2