You've already forked system-design-primer
mirror of
https://github.com/donnemartin/system-design-primer.git
synced 2025-06-18 21:57:44 +02:00
Fix coding errors (#149)
This commit is contained in:
@ -35,7 +35,7 @@ class SpendingByCategory(MRJob):
|
||||
if period == self.current_year_month():
|
||||
yield (period, category), amount
|
||||
|
||||
def reducer(self, key, value):
|
||||
def reducer(self, key, values):
|
||||
"""Sum values for each key.
|
||||
|
||||
(2016-01, shopping), 125
|
||||
|
Reference in New Issue
Block a user