comparison 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
comparison
equal deleted inserted replaced
65:f74935730fd2 66:6542a7cf826b
435 cur = conn.cursor() 435 cur = conn.cursor()
436 entries = [] 436 entries = []
437 cur.execute(qstr, [player]) 437 cur.execute(qstr, [player])
438 for record in cur: 438 for record in cur:
439 ndict = {"game": self} 439 ndict = {"game": self}
440 ndict["name"] = self.uname 440 ndict["name"] = player
441 ndict["endt"] = record[0] 441 ndict["endt"] = record[0]
442 ndict["score"] = record[1] 442 ndict["score"] = record[1]
443 ndict["xl"] = record[2] 443 ndict["xl"] = record[2]
444 ndict["fate"] = record[3] 444 ndict["fate"] = record[3]
445 ndict["startt"] = record[4] 445 ndict["startt"] = record[4]
517 cur = conn.cursor() 517 cur = conn.cursor()
518 entries = [] 518 entries = []
519 cur.execute(qstr, [player]) 519 cur.execute(qstr, [player])
520 for record in cur: 520 for record in cur:
521 ndict = {"game": self} 521 ndict = {"game": self}
522 ndict["name"] = self.uname 522 ndict["name"] = player
523 ndict["endt"] = record[0] 523 ndict["endt"] = record[0]
524 ndict["score"] = record[1] 524 ndict["score"] = record[1]
525 ndict["xl"] = record[2] 525 ndict["xl"] = record[2]
526 ndict["class"] = record[3] 526 ndict["class"] = record[3]
527 ndict["fate"] = record[4] 527 ndict["fate"] = record[4]