From 4bcba4a8ff8b435ddec57e12489fb209ee04780a Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 24 Mar 2002 11:54:47 +0000 Subject: [PATCH] warnings update --- scripts/register/warn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/register/warn.py b/scripts/register/warn.py index 27c7f0eda..3ad0d78f9 100755 --- a/scripts/register/warn.py +++ b/scripts/register/warn.py @@ -13,7 +13,7 @@ warnahead=2 db=MySQLdb.connect(db=dbname) cursor=db.cursor() -users = cursor.execute("select users.email, users.id, count(subscriptions.game) from users, subscriptions, games where users.id=subscriptions.user and subscriptions.game=games.id and games.status='RUNNING' GROUP BY users.id") +users = cursor.execute("select users.email, users.id, count(subscriptions.game) from users, subscriptions, games where users.id=subscriptions.user and subscriptions.game=games.id user.id!=0 and games.status='RUNNING' GROUP BY users.id") server=smtplib.SMTP('localhost') while users > 0: users=users-1