Add minimum threshold to WR notifications
All checks were successful
ci / docker (push) Successful in 4m5s
All checks were successful
ci / docker (push) Successful in 4m5s
This commit is contained in:
parent
c74c71df5f
commit
73c7af1287
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -41,7 +41,7 @@ def submit_score():
|
||||||
|
|
||||||
position = db.zrevrank(DB_KEY, uname + "|" + score + "|" + wave) + 1
|
position = db.zrevrank(DB_KEY, uname + "|" + score + "|" + wave) + 1
|
||||||
print(position)
|
print(position)
|
||||||
if position == 1:
|
if position == 1 and int(wave) > 5:
|
||||||
print("WR ALERT!!!!")
|
print("WR ALERT!!!!")
|
||||||
if DEV:
|
if DEV:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue