value --> values

Also fixed a copy-and-paste error
pull/149/head
cclauss 2018-03-14 13:09:53 +01:00 committed by GitHub
parent 615a66fa41
commit d4df81c7bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ class SalesRanker(MRJob):
if self.within_past_week(timestamp):
yield (category, product_id), quantity
def reducer(self, key, value):
def reducer(self, key, values):
"""Sum values for each key.
(foo, p1), 2
@ -74,4 +74,4 @@ class SalesRanker(MRJob):
if __name__ == '__main__':
HitCounts.run()
SalesRanker.run()