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])