Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f076d16

Browse files
Removes GET from /solve and removes the return render_template line
1 parent cd1c8d4 commit f076d16

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎app.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def random_johnson(nb_machines, nb_jobs):
7373
return gantt_json, seq, opt_makespan
7474

7575

76-
@app.route('/solve', methods=["POST", "GET"])
76+
@app.route('/solve', methods=["POST"])
7777
def solve():
7878
if request.method == "POST":
7979
prob = request.get_json()
@@ -109,8 +109,6 @@ def solve():
109109
)
110110
return response
111111

112-
return render_template("index.html", plot=random_johnson(2, 6), seq=seq, opt_makespan=optim_makespan)
113-
114112

115113
@app.route('/random', methods=["POST"])
116114
def random():

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /