Skip to content

Commit

Permalink
Merge c6b3594 into master-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Jun 15, 2022
2 parents 9aae2b2 + c6b3594 commit 9d6638d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bb_vm/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def brick_play(request):

response_data = {}
# Prevent starting VM if user has unpaid blance and 3+ strikes.
if profile.strikes >= 3 and tracker.cycle_total > 0:
if profile.strikes >= 3 and int(tracker.cycle_total) > 0:
response_data['error'] = "Unpaid balance, update payment method to avoid interuptions."
return JsonResponse(response_data, status=200, safe=False)

Expand Down

0 comments on commit 9d6638d

Please sign in to comment.