Skip to content

Commit

Permalink
Open suce commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kkevlar committed Jun 15, 2024
1 parent af11500 commit 5aae10d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
2 changes: 1 addition & 1 deletion mjoy_core/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down
9 changes: 0 additions & 9 deletions teamlock.json

This file was deleted.

12 changes: 6 additions & 6 deletions webapp/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__':
Expand Down

0 comments on commit 5aae10d

Please sign in to comment.