changeset 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 f74935730fd2
children 5b6211e2e36f
files py/rlgall.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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]