Parcourir la source

Fixed two variable references.

No functional effect at this point.
Heikki Hokkanen il y a 16 ans
Parent
révision
419243008a
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2
    2
      gitstats

+ 2
- 2
gitstats Voir le fichier

@@ -139,7 +139,7 @@ class DataCollector:
139 139
 	
140 140
 	##
141 141
 	# Save cacheable data
142
-	def saveCache(self, filename):
142
+	def saveCache(self, cachefile):
143 143
 		print 'Saving cache...'
144 144
 		f = open(cachefile, 'w')
145 145
 		#pickle.dump(self.cache, f)
@@ -209,7 +209,7 @@ class GitDataCollector(DataCollector):
209 209
 				self.tags[tag] = { 'stamp': stamp, 'hash' : hash, 'date' : datetime.datetime.fromtimestamp(stamp).strftime('%Y-%m-%d'), 'commits': 0, 'authors': {} }
210 210
 
211 211
 		# collect info on tags, starting from latest
212
-		tags_sorted_by_date_desc = map(lambda el : el[1], reversed(sorted(map(lambda el : (el[1]['date'], el[0]), data.tags.items()))))
212
+		tags_sorted_by_date_desc = map(lambda el : el[1], reversed(sorted(map(lambda el : (el[1]['date'], el[0]), self.tags.items()))))
213 213
 		prev = None
214 214
 		for tag in reversed(tags_sorted_by_date_desc):
215 215
 			cmd = 'git shortlog -s "%s"' % tag