]> git.zarvox.org Git - wp3.git/commitdiff
Bugfix: ruined analytics if any room has >2 people
authorDrew Fisher <drew.m.fisher@gmail.com>
Thu, 10 Sep 2009 03:36:07 +0000 (22:36 -0500)
committerDrew Fisher <drew.m.fisher@gmail.com>
Thu, 10 Sep 2009 03:36:07 +0000 (22:36 -0500)
I reused the variable named 'd'.  This was not a good idea.

analytics.py

index 7bde1359ad68146ffcab4406390170e921e43865..ed193084ccc496d242723a480579831ce8dd9dd0 100644 (file)
@@ -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)