This commit is contained in:
Enno Rehling 2002-04-05 20:35:22 +00:00
parent 507e86e63c
commit 41f17d9df7
2 changed files with 3 additions and 2 deletions

View File

@ -15,6 +15,7 @@ Errors = ""
db = MySQLdb.connect(db=dbname) db = MySQLdb.connect(db=dbname)
smtpserver='localhost' smtpserver='localhost'
notify='accounts@vinyambar.de' notify='accounts@vinyambar.de'
minnmr=0
# define a new function called Display # define a new function called Display
# it takes one parameter - a string to Display # it takes one parameter - a string to Display
@ -56,7 +57,7 @@ def ShowPage():
while results>0: while results>0:
results=results-1 results=results-1
gid, game, faction, lastturn, sid, race, info = cursor.fetchone() gid, game, faction, lastturn, sid, race, info = cursor.fetchone()
if lastturn<maxturn[gid]: if lastturn<=maxturn[gid]+minnmr:
if info==None: if info==None:
info='Keine Informationen' info='Keine Informationen'
output=output+'<tr><td>'+ race + '</td><td>'+ game + '</td><td>' + str(int(maxturn[gid]-lastturn)) + '</td><td>' + info + '</td>' output=output+'<tr><td>'+ race + '</td><td>'+ game + '</td><td>' + str(int(maxturn[gid]-lastturn)) + '</td><td>' + info + '</td>'

View File

@ -12,7 +12,7 @@ from whrandom import choice
# specify the filename of the template file # specify the filename of the template file
scripturl="http://eressea.upb.de/~enno/cgi-bin/vinyambar-register.py" scripturl="http://eressea.upb.de/~enno/cgi-bin/vinyambar-register.py"
HTMLTemplate = "vinyambar.html" HTMLTemplate = "vinyambar.html"
MailTemplate="register.mail" MailTemplate="vinyambar-register.mail"
DefaultTitle = "Vinyambar Anmeldung" DefaultTitle = "Vinyambar Anmeldung"
dbname = "vinyambar" dbname = "vinyambar"
From = "accounts@vinyambar.de" From = "accounts@vinyambar.de"