gf
This commit is contained in:
parent
1c84399650
commit
f297843653
2 changed files with 3 additions and 3 deletions
|
@ -135,7 +135,7 @@ def create_sub2(v):
|
|||
|
||||
sub = g.db.query(Sub).filter_by(name=name).one_or_none()
|
||||
if not sub:
|
||||
cost = v.subs_created * 25
|
||||
cost = v.subs_created * 50
|
||||
if v.coins < cost:
|
||||
return render_template("sub/create_sub.html", v=v, error="You don't have enough coins!"), 403
|
||||
|
||||
|
|
|
@ -44,11 +44,11 @@
|
|||
</p>
|
||||
{% endif %}
|
||||
|
||||
<button class="btn btn-primary ml-auto" id="create_button" {% if v.subs_created * 25 > v.coins %}disabled{% endif %}>Create Sub</button>
|
||||
<button class="btn btn-primary ml-auto" id="create_button" {% if v.subs_created * 50 > v.coins %}disabled{% endif %}>Create Sub</button>
|
||||
|
||||
</div>
|
||||
|
||||
<p class="mt-2 mr-1" style="float: right"><b>Cost</b>: {{v.subs_created * 25}} coins</p>
|
||||
<p class="mt-2 mr-1" style="float: right"><b>Cost</b>: {{v.subs_created * 50}} coins</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue