mirror of
				https://github.com/Adam-Ant/ClockworkAprilFools2017
				synced 2025-10-30 23:07:17 +00:00 
			
		
		
		
	Fix paths
This commit is contained in:
		| @@ -63,7 +63,7 @@ def teamspeakClientCheck(clientName): | |||||||
|             return redirect(url_for("payment")) |             return redirect(url_for("payment")) | ||||||
|  |  | ||||||
|  |  | ||||||
| @app.route("/") | @app.route("/plus/") | ||||||
| def index(): | def index(): | ||||||
|     if 'username' in session: |     if 'username' in session: | ||||||
|         #No longer in the checkout flow, reset! |         #No longer in the checkout flow, reset! | ||||||
| @@ -71,7 +71,7 @@ def index(): | |||||||
|     return render_template("index.html") |     return render_template("index.html") | ||||||
|  |  | ||||||
|  |  | ||||||
| @app.route("/collectsunlight") | @app.route("/plus/collectsunlight") | ||||||
| def wait(): | def wait(): | ||||||
|     if "username" in session: |     if "username" in session: | ||||||
|         return render_template("wait.html") |         return render_template("wait.html") | ||||||
| @@ -79,7 +79,7 @@ def wait(): | |||||||
|         return redirect(url_for("buy")) |         return redirect(url_for("buy")) | ||||||
|  |  | ||||||
|  |  | ||||||
| @app.route("/pay") | @app.route("/plus/pay") | ||||||
| def payment(): | def payment(): | ||||||
|     if "username" in session: |     if "username" in session: | ||||||
|         return render_template("payment.html") |         return render_template("payment.html") | ||||||
| @@ -87,7 +87,7 @@ def payment(): | |||||||
|         return redirect(url_for("buy")) |         return redirect(url_for("buy")) | ||||||
|  |  | ||||||
|  |  | ||||||
| @app.route("/activate") | @app.route("/plus/activate") | ||||||
| def activate(): | def activate(): | ||||||
|     if "username" in session: |     if "username" in session: | ||||||
|         if teamspeakClientAdd(session['username']): |         if teamspeakClientAdd(session['username']): | ||||||
| @@ -100,7 +100,7 @@ def activate(): | |||||||
|         return redirect(url_for("buy")) |         return redirect(url_for("buy")) | ||||||
|  |  | ||||||
|  |  | ||||||
| @app.route("/buy", methods=['GET', 'POST']) | @app.route("/plus/buy", methods=['GET', 'POST']) | ||||||
| def buy(): | def buy(): | ||||||
|     if request.method == 'POST': |     if request.method == 'POST': | ||||||
|         session['username'] = request.form['username'] |         session['username'] = request.form['username'] | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user