diff --git a/files/helpers/lottery.py b/files/helpers/lottery.py
index 3117c4dd9..1d90e5b73 100644
--- a/files/helpers/lottery.py
+++ b/files/helpers/lottery.py
@@ -113,7 +113,7 @@ def purchase_lottery_tickets(v, quantity=1):
if quantity > 1:
charge_reason += 's'
- if not v.charge_account('coins', LOTTERY_TICKET_COST * quantity, charge_reason)[0]:
+ if not v.charge_account('coins', LOTTERY_TICKET_COST * quantity, charge_reason):
return False, "You don't have enough coins"
v.currently_held_lottery_tickets += quantity
diff --git a/files/routes/groups.py b/files/routes/groups.py
index d9e88b556..810cf2132 100644
--- a/files/routes/groups.py
+++ b/files/routes/groups.py
@@ -36,7 +36,7 @@ def create_group(v):
abort(400, "This group already exists!")
charge_reason = f'Cost of creating !{name}'
- if not v.charge_account('coins/marseybux', GROUP_COST, charge_reason)[0]:
+ if not v.charge_account('coins/marseybux', GROUP_COST, charge_reason):
abort(403, "You don't have enough coins or marseybux!")
g.db.add(v)
diff --git a/files/routes/holes.py b/files/routes/holes.py
index c19947cb1..7bb15ef20 100644
--- a/files/routes/holes.py
+++ b/files/routes/holes.py
@@ -394,7 +394,7 @@ def create_sub2(v):
abort(400, "Name does not match the required format!")
charge_reason = f'Cost of creating /h/{name}'
- if not v.charge_account('coins/marseybux', HOLE_COST, charge_reason)[0]:
+ if not v.charge_account('coins/marseybux', HOLE_COST, charge_reason):
abort(400, "You don't have enough coins or marseybux!")
hole = get_hole(name, graceful=True)
diff --git a/files/routes/polls.py b/files/routes/polls.py
index 0d293b720..5b4ae4a81 100644
--- a/files/routes/polls.py
+++ b/files/routes/polls.py
@@ -26,7 +26,7 @@ def vote_option(option_id, v):
if option.exclusive == 2:
if option.parent.total_bet_voted(v):
abort(403, "You can't participate in a closed bet!")
- if not v.charge_account('coins/marseybux', POLL_BET_COINS, f"Cost of bet on {option.parent.textlink}")[0]:
+ if not v.charge_account('coins/marseybux', POLL_BET_COINS, f"Cost of bet on {option.parent.textlink}"):
abort(400, f"You don't have {POLL_BET_COINS} coins or marseybux!")
g.db.add(v)
@@ -79,7 +79,7 @@ def vote_option_comment(option_id, v):
if option.exclusive == 2:
if option.parent.total_bet_voted(v):
abort(403, "You can't participate in a closed bet!")
- if not v.charge_account('coins/marseybux', POLL_BET_COINS, f"Cost of bet on {option.parent.textlink}")[0]:
+ if not v.charge_account('coins/marseybux', POLL_BET_COINS, f"Cost of bet on {option.parent.textlink}"):
abort(400, f"You don't have {POLL_BET_COINS} coins or marseybux!")
g.db.add(v)
diff --git a/files/routes/settings.py b/files/routes/settings.py
index e5df688e3..ce04691e2 100644
--- a/files/routes/settings.py
+++ b/files/routes/settings.py
@@ -380,7 +380,7 @@ def settings_personal_post(v):
else:
cost = HOUSE_JOIN_COST
- success = v.charge_account('coins/marseybux', cost, "Cost of changing houses")[0]
+ success = v.charge_account('coins/marseybux', cost, "Cost of changing houses")
if not success: abort(403)
if house == "None":