From 37bb05af95e46aaac9988ccdadb6f4a1ba06d18c Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 24 Mar 2002 12:11:59 +0000 Subject: [PATCH] neue parteien in deutsch rausschreiben --- scripts/register/getfactions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/register/getfactions.py b/scripts/register/getfactions.py index 59825e8c3..fbe6ffce2 100755 --- a/scripts/register/getfactions.py +++ b/scripts/register/getfactions.py @@ -6,7 +6,7 @@ import sys dbname=sys.argv[1] maxnum=int(sys.argv[2]) -query = "select distinct u.email, s.race, u.locale from users u, subscriptions s left join userips i on u.id=i.user left join bannedips b on i.ip=b.ip where s.user=u.id and b.ip is NULL and u.status='CONFIRMED' order by u.id" +query = "select distinct u.email, r.name, u.locale from users u, races r, subscriptions s left join userips i on u.id=i.user left join bannedips b on i.ip=b.ip where s.user=u.id and b.ip is NULL and u.status='CONFIRMED' and r.race=s.race and r.locale='de' order by u.id" db=MySQLdb.connect(db=dbname) cursor = db.cursor() num=cursor.execute(query)