forked from github/server
updates
This commit is contained in:
parent
507e86e63c
commit
41f17d9df7
|
@ -15,6 +15,7 @@ Errors = ""
|
|||
db = MySQLdb.connect(db=dbname)
|
||||
smtpserver='localhost'
|
||||
notify='accounts@vinyambar.de'
|
||||
minnmr=0
|
||||
|
||||
# define a new function called Display
|
||||
# it takes one parameter - a string to Display
|
||||
|
@ -56,7 +57,7 @@ def ShowPage():
|
|||
while results>0:
|
||||
results=results-1
|
||||
gid, game, faction, lastturn, sid, race, info = cursor.fetchone()
|
||||
if lastturn<maxturn[gid]:
|
||||
if lastturn<=maxturn[gid]+minnmr:
|
||||
if info==None:
|
||||
info='Keine Informationen'
|
||||
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
|
||||
scripturl="http://eressea.upb.de/~enno/cgi-bin/vinyambar-register.py"
|
||||
HTMLTemplate = "vinyambar.html"
|
||||
MailTemplate="register.mail"
|
||||
MailTemplate="vinyambar-register.mail"
|
||||
DefaultTitle = "Vinyambar Anmeldung"
|
||||
dbname = "vinyambar"
|
||||
From = "accounts@vinyambar.de"
|
||||
|
|
Loading…
Reference in New Issue