# HG changeset patch # User John "Elwin" Edwards # Date 1659574178 14400 # Node ID 44e8aaa20d02217a298d460212f6774b916b534b # Parent 801ec25cc0af3c8799b39f3011993f04bd0ed2eb Fix the format of archive links. diff -r 801ec25cc0af -r 44e8aaa20d02 py/rlgall.py --- a/py/rlgall.py Sun Jan 02 20:40:05 2022 -0500 +++ b/py/rlgall.py Wed Aug 03 20:49:38 2022 -0400 @@ -86,7 +86,7 @@ def linktoArchive(entry): "Takes an entry dict and returns a link to the ttyrec archivist." - lstr = '{3}' + lstr = '{3}' linktext = entry["endt"].strftime("%Y/%m/%d %H:%M:%S") stamp = int(entry["endt"].timestamp()) escname = html.escape(entry["name"]) @@ -215,7 +215,7 @@ 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 ] diff -r 801ec25cc0af -r 44e8aaa20d02 web/recent.cgi --- a/web/recent.cgi Sun Jan 02 20:40:05 2022 -0500 +++ b/web/recent.cgi Wed Aug 03 20:49:38 2022 -0400 @@ -13,8 +13,8 @@ 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: