chri
This commit is contained in:
parent
46077e7e94
commit
70d35e6af4
2 changed files with 3 additions and 1 deletions
|
@ -469,7 +469,7 @@ class Comment(Base):
|
||||||
player_hand = split_result[0].replace('X', '10')
|
player_hand = split_result[0].replace('X', '10')
|
||||||
dealer_hand = split_result[1].split('/')[0] if blackjack_status == 'active' else split_result[1]
|
dealer_hand = split_result[1].split('/')[0] if blackjack_status == 'active' else split_result[1]
|
||||||
dealer_hand = dealer_hand.replace('X', '10')
|
dealer_hand = dealer_hand.replace('X', '10')
|
||||||
wager = split_result[4]
|
wager = int(split_result[4])
|
||||||
try: kind = split_result[5]
|
try: kind = split_result[5]
|
||||||
except: kind = "coins"
|
except: kind = "coins"
|
||||||
currency_kind = "Coins" if kind == "coins" else "Marseybucks"
|
currency_kind = "Coins" if kind == "coins" else "Marseybucks"
|
||||||
|
|
|
@ -89,6 +89,8 @@ def toggle_club(pid, v):
|
||||||
@auth_required
|
@auth_required
|
||||||
def publish(pid, v):
|
def publish(pid, v):
|
||||||
post = get_post(pid)
|
post = get_post(pid)
|
||||||
|
if not post.private: return {"message": "Post published!"}
|
||||||
|
|
||||||
if post.author_id != v.id: abort(403)
|
if post.author_id != v.id: abort(403)
|
||||||
post.private = False
|
post.private = False
|
||||||
post.created_utc = int(time.time())
|
post.created_utc = int(time.time())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue