I reused the variable named 'd'. This was not a good idea.
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)