forked from rDrama/rDrama
master
parent
554ada8d29
commit
0c18642b2f
|
@ -248,8 +248,7 @@ def create_sub2(v):
|
||||||
|
|
||||||
sub = g.db.query(Sub).filter_by(name=name).one_or_none()
|
sub = g.db.query(Sub).filter_by(name=name).one_or_none()
|
||||||
if not sub:
|
if not sub:
|
||||||
if SITE_NAME == 'PCM': cost = v.subs_created * 150
|
cost = v.subs_created * 150
|
||||||
else: cost = v.subs_created * 50
|
|
||||||
|
|
||||||
if v.coins < cost:
|
if v.coins < cost:
|
||||||
return render_template("sub/create_sub.html", v=v, error="You don't have enough coins!"), 403
|
return render_template("sub/create_sub.html", v=v, error="You don't have enough coins!"), 403
|
||||||
|
|
Loading…
Reference in New Issue