From 4bf44904db9678fa767f38b08bd94320f143884d Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Fri, 6 Aug 2021 20:06:09 +0300 Subject: [PATCH] Typo in `sales_rank` code example --- solutions/system_design/sales_rank/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solutions/system_design/sales_rank/README.md b/solutions/system_design/sales_rank/README.md index 71ad1c7d..892a9d3d 100644 --- a/solutions/system_design/sales_rank/README.md +++ b/solutions/system_design/sales_rank/README.md @@ -126,7 +126,7 @@ class SalesRanker(MRJob): if self.within_past_week(timestamp): yield (category_id, product_id), quantity - def reducer(self, key, value): + def reducer(self, key, values): """Sum values for each key. (category1, product1), 2