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