forked from github/server
zat mit neuen preisen und ACTIVE beachtung
This commit is contained in:
parent
08ece93ff0
commit
e67d2b5ccb
|
@ -12,7 +12,7 @@ db=MySQLdb.connect(db=dbname)
|
||||||
cursor=db.cursor()
|
cursor=db.cursor()
|
||||||
|
|
||||||
matchrenum=re.compile(
|
matchrenum=re.compile(
|
||||||
r"""renum\s([^\s]+)\s(.*)\n""",
|
r"""\brenum\s([^\s]+)\s(.*)\n""",
|
||||||
re.IGNORECASE | re.DOTALL | re.VERBOSE)
|
re.IGNORECASE | re.DOTALL | re.VERBOSE)
|
||||||
|
|
||||||
matchdropout=re.compile(
|
matchdropout=re.compile(
|
||||||
|
|
|
@ -5,11 +5,11 @@ import sys
|
||||||
dbname=sys.argv[1]
|
dbname=sys.argv[1]
|
||||||
game=int(sys.argv[2])
|
game=int(sys.argv[2])
|
||||||
date=sys.argv[3]
|
date=sys.argv[3]
|
||||||
price=2.5
|
price=1.25
|
||||||
db=MySQLdb.connect(db=dbname)
|
db=MySQLdb.connect(db=dbname)
|
||||||
cursor=db.cursor()
|
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:
|
while k!=0:
|
||||||
k=k-1
|
k=k-1
|
||||||
user = int(cursor.fetchone()[0])
|
user = int(cursor.fetchone()[0])
|
||||||
|
|
Loading…
Reference in New Issue