From: Drew Fisher Date: Thu, 10 Sep 2009 03:36:07 +0000 (-0500) Subject: Bugfix: ruined analytics if any room has >2 people X-Git-Url: https://git.zarvox.org/shortlog/month?a=commitdiff_plain;h=88f56b13731700562bfcc52c66604345ee60d008;p=wp3.git Bugfix: ruined analytics if any room has >2 people I reused the variable named 'd'. This was not a good idea. --- diff --git a/analytics.py b/analytics.py index 7bde135..ed19308 100644 --- a/analytics.py +++ b/analytics.py @@ -116,7 +116,7 @@ class Analytics(QWidget): self.vlog("\tRoom " + str(room) + ": done") if len(records) > 2: self.vlog("\tRoom " + str(room) + ": There seem to be more than two people living here!") - self.vlog("\t\t" + ", ".join( [ str(d[1]) + " " + str(d[2]) for d in records] ) ) + self.vlog("\t\t" + ", ".join( [ str(temp[1]) + " " + str(temp[2]) for temp in records] ) ) self.log("") # put a newline between each dorm self.summary.setText(self.report)