mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
bookie: compare new bet amount with total for player, not the whole book
This commit is contained in:
parent
250528dff3
commit
73a3bd91bd
1 changed files with 1 additions and 1 deletions
|
@ -326,7 +326,7 @@ def Bet(link,cmd):
|
|||
p.hincrby(tname,identity+":units",units)
|
||||
p.sadd(tname+":bettors",identity)
|
||||
p.execute()
|
||||
total_bet=long(redis_hget(tname,"bets"))
|
||||
total_bet=long(redis_hget(tname,identity+":units"))
|
||||
if total_bet == units:
|
||||
link.send("%s has bet %s on %s for %s" % (NickFromIdentity(identity), AmountToString(units), outcome, book_name))
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue