Mercurial > hg > rlgallery-misc
comparison web/recent.cgi @ 21:453278a81371
Add tablerecent() so recent.cgi will work as before.
Port the tablerecent() function, which reads the most recent games
directly from the logfile instead of the database. This allows
recent.cgi to show games immediately without waiting for the recorder
to put them in the database.
author | John "Elwin" Edwards <elwin@sdf.org> |
---|---|
date | Mon, 17 Sep 2012 13:41:10 -0700 |
parents | 64272fc2350c |
children | e8f3b7994d88 |
comparison
equal
deleted
inserted
replaced
20:c05050f78d81 | 21:453278a81371 |
---|---|
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # CGI script creating page of recent games | 2 # CGI script creating page of recent games |
3 | 3 |
4 import sys | 4 import sys |
5 import time | 5 import time |
6 import rlgall | 6 import rlgalldb as rlgall |
7 | 7 |
8 # The required header | 8 # The required header |
9 sys.stdout.write("Content-type: text/html\r\n\r\n") | 9 sys.stdout.write("Content-type: text/html\r\n\r\n") |
10 # The top of the page | 10 # The top of the page |
11 sys.stdout.write(rlgall.phead.format("Recent Games")) | 11 sys.stdout.write(rlgall.phead.format("Recent Games")) |