forked from github/server
Diverse Bugfixes
This commit is contained in:
parent
2a76bb8c2d
commit
24f3cbd6ae
3 changed files with 7 additions and 3 deletions
|
@ -39,7 +39,7 @@ while (records>0):
|
|||
"Auftragsnummer: " + str(int(subscription)) + "\n"+
|
||||
"Passwort: " + passwd + "\n" +
|
||||
"Rasse: " + race + "\n\n"+
|
||||
"Bitte bewahre diese Mail sorgfältig auf, da Du deine Kundennummerund das\n"+
|
||||
"Bitte bewahre diese Mail sorgfältig auf, da Du deine Kundennummer und das\n"+
|
||||
"Passwort für das Spiel benötigst. Solltest Du noch Fragen zu Deiner \n"+
|
||||
"Anmeldung haben, wende Dich bitte an accounts@vinyambar.de.\n\n"+
|
||||
"Das Vinyambar-Team")
|
||||
|
|
|
@ -38,6 +38,7 @@ for line in infile.readlines():
|
|||
if match!=None:
|
||||
To = match.group(1)
|
||||
Reason = match.group(2)
|
||||
print "ERROR: "+To+": "+Reason
|
||||
Msg = ("From: "+From+"\nTo: "+To+"\nSubject: Vinyambar Anmeldung fehlgeschlagen.\n\n"
|
||||
+"Deine Anmeldung konnte aus folgendem Grund nicht akzeptiert werden:\n "+Reason+"\n")
|
||||
try:
|
||||
|
|
|
@ -151,13 +151,16 @@ else:
|
|||
cursor.execute("INSERT INTO users (firstname, lastname, email, address, city, phone, country, password) "+
|
||||
"VALUES ('"+firstname+"', '"+lastname+"', '"+email+"', '"+address+"', '"+city+"', '"+phone+"', "+country+", '"+genpasswd()+"')")
|
||||
|
||||
cursor.execute("SELECT LAST_INSERT_ID() from dual")
|
||||
lastid=str(int(cursor.fetchone()[0]))
|
||||
|
||||
if (oldrace!=None):
|
||||
cursor.execute("INSERT INTO subscriptions (user, race, game) "+
|
||||
"VALUES (LAST_INSERT_ID(), '"+oldrace+"', 1)")
|
||||
"VALUES ("+lastid+", '"+oldrace+"', 1)")
|
||||
|
||||
if (newrace!=None):
|
||||
cursor.execute("INSERT INTO subscriptions (user, race, game) "+
|
||||
"VALUES (LAST_INSERT_ID(), '"+newrace+"', 1)")
|
||||
"VALUES ("+lastid+", '"+newrace+"', 2)")
|
||||
|
||||
errors.close()
|
||||
unlock(sys.argv[1]+".err")
|
||||
|
|
Loading…
Reference in a new issue