view web/recent.cgi @ 25:dd72d2dd923f

Move the inprogress dirs into a single directory. The inprogress dirs are now at /dgldir/inprogress/$GAME instead of /dgldir/inprogress-$GAME. This is less cluttered and may be more convenient for watching.
author John "Elwin" Edwards
date Sun, 20 Oct 2013 19:05:58 -0700
parents 453278a81371
children e8f3b7994d88
line wrap: on
line source

#!/usr/bin/python
# CGI script creating page of recent games

import sys
import time
import rlgalldb as rlgall

# The required header
sys.stdout.write("Content-type: text/html\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.pti.format("Recent Expeditions"))

for game in rlgall.gamelist:
  game.tablerecent(sys.stdout)

sys.stdout.write(rlgall.pend)
exit()