mirror of
				https://github.com/donnemartin/system-design-primer.git
				synced 2025-11-04 10:12:32 +03:00 
			
		
		
		
	Fix reducer argument in pastebin exercise (#85)
This commit is contained in:
		
				
					committed by
					
						
						Donne Martin
					
				
			
			
				
	
			
			
			
						parent
						
							17e5fb7d32
						
					
				
				
					commit
					cc48058662
				
			@@ -218,7 +218,7 @@ class HitCounts(MRJob):
 | 
			
		||||
        period = self.extract_year_month(line)
 | 
			
		||||
        yield (period, url), 1
 | 
			
		||||
 | 
			
		||||
    def reducer(self, key, value):
 | 
			
		||||
    def reducer(self, key, values):
 | 
			
		||||
        """Sum values for each key.
 | 
			
		||||
 | 
			
		||||
        (2016-01, url0), 2
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user