forked from rDrama/rDrama
master
parent
edb39d76f8
commit
051b35a028
|
@ -220,19 +220,21 @@ def remove_mod(v, sub):
|
||||||
|
|
||||||
return redirect(f'/h/{sub}/mods')
|
return redirect(f'/h/{sub}/mods')
|
||||||
|
|
||||||
# @app.get("/create_sub")
|
@app.get("/create_sub")
|
||||||
# @is_not_permabanned
|
@is_not_permabanned
|
||||||
# def create_sub(v):
|
def create_sub(v):
|
||||||
# if SITE_NAME == 'rDrama' and v.admin_level < 3: abort(403)
|
if SITE_NAME == 'Cringetopia': abort(403)
|
||||||
|
|
||||||
# if request.host == 'rdrama.net': cost = 0
|
if SITE_NAME == 'rDrama' and v.admin_level < 3: abort(403)
|
||||||
# else:
|
|
||||||
# num = v.subs_created + 1
|
if request.host == 'rdrama.net': cost = 0
|
||||||
# for a in v.alts:
|
else:
|
||||||
# num += a.subs_created
|
num = v.subs_created + 1
|
||||||
# cost = num * 100
|
for a in v.alts:
|
||||||
|
num += a.subs_created
|
||||||
|
cost = num * 100
|
||||||
|
|
||||||
# return render_template("sub/create_sub.html", v=v, cost=cost)
|
return render_template("sub/create_sub.html", v=v, cost=cost)
|
||||||
|
|
||||||
|
|
||||||
@app.post("/create_sub")
|
@app.post("/create_sub")
|
||||||
|
|
Loading…
Reference in New Issue