Support coin bets without a whole number (e.g. '0.1' can be '.1')
This commit is contained in:
parent
11d1e5c0e0
commit
0b44788ac5
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ DEFAULT_REDEEM_AMOUNT = "100.0"
|
|||
DEFAULT_INTEREST_RATE = "0.01"
|
||||
INTEREST_INTERVAL = 60*60 # 1 hour
|
||||
DECIMAL_ZERO = decimal.Decimal("0")
|
||||
REGEX_FLOAT = re.compile("\d+(?:\.\d{1,2}|$)")
|
||||
REGEX_FLOAT = re.compile("(?:\d+(?:\.\d{1,2}|$)|\.\d{1,2})")
|
||||
|
||||
RED = [1, 3, 5, 7, 9, 12, 14, 16, 18, 19, 21, 23, 25, 27, 30, 32, 34, 36]
|
||||
BLACK = [2, 4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 29, 31, 33, 35]
|
||||
|
|
Loading…
Reference in a new issue