Mercurial > hg > rlgallery-misc
diff py/rlgall.py @ 66:6542a7cf826b
Fix links from player pages to the ttyrec archive.
RogueGame.getPlayer() was setting the "name" field to self.uname
instead of the player's name.
Bugs like this are why I need to set up an actual testing server.
author | John "Elwin" Edwards |
---|---|
date | Thu, 06 Aug 2015 17:07:40 -0400 |
parents | 86ae333bb4c0 |
children | 67bcca6e3cb1 |
line wrap: on
line diff
--- a/py/rlgall.py Sat Jun 27 19:55:56 2015 -0400 +++ b/py/rlgall.py Thu Aug 06 17:07:40 2015 -0400 @@ -437,7 +437,7 @@ cur.execute(qstr, [player]) for record in cur: ndict = {"game": self} - ndict["name"] = self.uname + ndict["name"] = player ndict["endt"] = record[0] ndict["score"] = record[1] ndict["xl"] = record[2] @@ -519,7 +519,7 @@ cur.execute(qstr, [player]) for record in cur: ndict = {"game": self} - ndict["name"] = self.uname + ndict["name"] = player ndict["endt"] = record[0] ndict["score"] = record[1] ndict["xl"] = record[2]