Fix the format of archive links.

This commit is contained in:
John "Elwin" Edwards 2022-08-03 20:49:38 -04:00
parent de10008bdb
commit 5ab8448de6
2 changed files with 4 additions and 4 deletions

View file

@ -86,7 +86,7 @@ def playerlink(name):
def linktoArchive(entry):
"Takes an entry dict and returns a link to the ttyrec archivist."
lstr = '<a href="/archive.cgi?name={0};game={1};time={2}">{3}</a>'
lstr = '<a href="/archive.cgi?name={0}&amp;game={1}&amp;time={2}">{3}</a>'
linktext = entry["endt"].strftime("%Y/%m/%d %H:%M:%S")
stamp = int(entry["endt"].timestamp())
escname = html.escape(entry["name"])
@ -215,7 +215,7 @@ class Game:
if result:
prev = result[0]
else:
prev = datetime.fromtimestamp(0, pytz.utc);
prev = datetime.fromtimestamp(0, pytz.utc)
ttyrecdir = "/var/dgl/dgldir/ttyrec/{0}/{1}/".format(nameF, self.uname)
allfilekeys = [ (recnameToTS(f), f) for f in os.listdir(ttyrecdir) ]
vfilekeys = [ e for e in allfilekeys if e[0] > prev ]

View file

@ -13,8 +13,8 @@ import rlgall
sys.stdout.write("Content-Type: text/html; charset=utf-8\r\n\r\n")
# The top of the page
sys.stdout.write(rlgall.phead.format("Recent Games"))
sys.stdout.write(rlgall.ptop);
sys.stdout.write(rlgall.navtop.format("Recent"));
sys.stdout.write(rlgall.ptop)
sys.stdout.write(rlgall.navtop.format("Recent"))
sys.stdout.write(rlgall.pti.format("Recent Expeditions"))
for game in rlgall.gamelist: