From e67d2b5ccb79fc03da578c026005270723d10105 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 2 Jan 2002 16:47:36 +0000 Subject: [PATCH] zat mit neuen preisen und ACTIVE beachtung --- scripts/register/update.py | 2 +- scripts/register/zat.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/register/update.py b/scripts/register/update.py index c4d7ba370..e6de4f01d 100644 --- a/scripts/register/update.py +++ b/scripts/register/update.py @@ -12,7 +12,7 @@ db=MySQLdb.connect(db=dbname) cursor=db.cursor() matchrenum=re.compile( - r"""renum\s([^\s]+)\s(.*)\n""", + r"""\brenum\s([^\s]+)\s(.*)\n""", re.IGNORECASE | re.DOTALL | re.VERBOSE) matchdropout=re.compile( diff --git a/scripts/register/zat.py b/scripts/register/zat.py index feface04a..7c6610c09 100755 --- a/scripts/register/zat.py +++ b/scripts/register/zat.py @@ -5,11 +5,11 @@ import sys dbname=sys.argv[1] game=int(sys.argv[2]) date=sys.argv[3] -price=2.5 +price=1.25 db=MySQLdb.connect(db=dbname) cursor=db.cursor() -k = cursor.execute("SELECT users.id FROM users,subscriptions WHERE users.id=subscriptions.user and subscriptions.game="+str(game)) +k = cursor.execute("SELECT users.id FROM users, subscriptions WHERE users.id=subscriptions.user and subscriptions.status='ACTIVE' and subscriptions.game="+str(game)) while k!=0: k=k-1 user = int(cursor.fetchone()[0])