view web/recent.cgi @ 18:5731d2ecaec4

Store arogue5 results in the database. The ARogueGame class is functional enough to put game results into the database, though it still can't get them back out.
author John "Elwin" Edwards <elwin@sdf.org>
date Mon, 17 Sep 2012 09:14:26 -0700
parents 64272fc2350c
children 453278a81371
line wrap: on
line source

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

import sys
import time
import 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()