zat mit neuen preisen und ACTIVE beachtung

This commit is contained in:
Enno Rehling 2002-01-02 16:47:36 +00:00
parent 08ece93ff0
commit e67d2b5ccb
2 changed files with 3 additions and 3 deletions

View File

@ -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(

View File

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