forked from MarseyWorld/MarseyWorld
fsdsfd
parent
c8c03dbe99
commit
3db5575319
|
@ -55,6 +55,7 @@ def distribute(v, comment):
|
||||||
|
|
||||||
autobetter = g.db.query(User).filter_by(id=AUTOBETTER_ID).first()
|
autobetter = g.db.query(User).filter_by(id=AUTOBETTER_ID).first()
|
||||||
autobetter.coins -= pool
|
autobetter.coins -= pool
|
||||||
|
if autobetter.coins < 0: abort(400)
|
||||||
g.db.add(autobetter)
|
g.db.add(autobetter)
|
||||||
|
|
||||||
cid = notif_comment(f"You lost the 200 coins you bet on [{post.permalink}]({post.permalink}) :marseylaugh:")
|
cid = notif_comment(f"You lost the 200 coins you bet on [{post.permalink}]({post.permalink}) :marseylaugh:")
|
||||||
|
|
Loading…
Reference in New Issue