From 5aae10dd6782d0e03526f468688d5cfc064316c2 Mon Sep 17 00:00:00 2001 From: Kevin Kellar Date: Sat, 15 Jun 2024 09:20:33 -0700 Subject: [PATCH] Open suce commit --- mjoy_core/src/main.rs | 2 +- teamlock.json | 9 --------- webapp/app.py | 12 ++++++------ 3 files changed, 7 insertions(+), 16 deletions(-) delete mode 100644 teamlock.json diff --git a/mjoy_core/src/main.rs b/mjoy_core/src/main.rs index 765bfee..4e223c6 100644 --- a/mjoy_core/src/main.rs +++ b/mjoy_core/src/main.rs @@ -107,7 +107,7 @@ fn main() { }; let team2 = { let mut t = team0.clone(); - t.name = "Potato Sluts".to_owned(); + t.name = "Orange Dragons".to_owned(); t.out_index = 2; t }; diff --git a/teamlock.json b/teamlock.json deleted file mode 100644 index bfce26a..0000000 --- a/teamlock.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "teams": [ - { - "name": "Etherial Narwhals", - "players": [], - "out_index": 0 - } - ] -} \ No newline at end of file diff --git a/webapp/app.py b/webapp/app.py index 296748d..4d2f940 100644 --- a/webapp/app.py +++ b/webapp/app.py @@ -11,32 +11,32 @@ def index(): @app.route('/team1', methods=['POST']) def team1(): data = {'teams': 1} - requests.post('http://192.168.0.238:5001/team', json=data) + requests.post('http://localhost:5001/team', json=data) return render_template('success.html', redirect_url='/') @app.route('/team2', methods=['POST']) def team2(): data = {'teams': 2} - requests.post('http://192.168.0.238:5001/team', json=data) + requests.post('http://localhost:5001/team', json=data) return render_template('success.html', redirect_url='/') @app.route('/team3', methods=['POST']) def team3(): data = {'teams': 3} - requests.post('http://192.168.0.238:5001/team', json=data) + requests.post('http://localhost:5001/team', json=data) return render_template('success.html', redirect_url='/') @app.route('/team4', methods=['POST']) def team4(): data = {'teams': 4} - requests.post('http://192.168.0.238:5001/team', json=data) + requests.post('http://localhost:5001/team', json=data) return render_template('success.html', redirect_url='/') @app.route('/setup', methods=['POST']) def reset(): - requests.post('http://192.168.0.238:5001/setup') + requests.post('http://localhost:5001/setup') return render_template('success.html', redirect_url='/') @app.route('/start', methods=['POST']) def start(): - requests.post('http://192.168.0.238:5001/start') + requests.post('http://localhost:5001/start') return render_template('success.html', redirect_url='/') if __name__ == '__main__':