forked from github/server
neue parteien in deutsch rausschreiben
This commit is contained in:
parent
4bcba4a8ff
commit
37bb05af95
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue