forked from github/server
updates
This commit is contained in:
parent
507e86e63c
commit
41f17d9df7
|
@ -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>'
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue