remotes/1693045480750635534/spooky-22
Aevann1 2022-03-06 06:23:12 +02:00
parent 193c2d3b11
commit 5404413a01
2 changed files with 3 additions and 1 deletions

View File

@ -469,7 +469,7 @@ class Comment(Base):
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 = dealer_hand.replace('X', '10')
wager = split_result[4]
wager = int(split_result[4])
try: kind = split_result[5]
except: kind = "coins"
currency_kind = "Coins" if kind == "coins" else "Marseybucks"

View File

@ -89,6 +89,8 @@ def toggle_club(pid, v):
@auth_required
def publish(pid, v):
post = get_post(pid)
if not post.private: return {"message": "Post published!"}
if post.author_id != v.id: abort(403)
post.private = False
post.created_utc = int(time.time())