Commit fc4288a6 authored by Thomas Stone's avatar Thomas Stone
Browse files

Added Hard Constraint Functionality

parent 756bb33a
elp04q224v9j9hlapb82oa2pi8 gtgvhs7ma7qtoa0pcdm3aijun8
cp440dlou67b6tijmp2hfncq88 d0hfnt84qv5091vmr56e6vvq88
n7am5q5ck9p8q69o8lidftljvc q3hj6arstuq35lsp80aee2fq9o
e8g887c04em9hqboh6sbd70efs of7kros5v8opsa06au48i0m530
f7ue0j2g705di5r6mqusl4drs8 g17vcjfr2tpmgkh5uq4toljil4
vhjv6lpkn5smvi6epnb7qthi4o 62e8fuim75c4kjtdvld24hbfbo
84631qcu7c1nhnsg1tl1qkqb2k l3roqmk1nbpri0v66f459ferps
tipqura4hdvmurum5b9tng0noo vnjholu57fri84495vsd78chi4
sgq2nos2sqlumnufu0fgf3oau8 rvk5nsad42s3dajee1lviihcvo
i7v1a51cgtj6k0k4kdap898fq8 ijmccbrdc8b0q2ge23l5v5u5ao
o7ebqa1fo4adlfg581l0hr10a4 3ioiabemrba3744n2d2fk36734
t5cih6s7dcoqubhma4sbnabip0 7vhceucp5erlaahfm225ctq4ko
vj9190hv14lrvimkvsge34t22c l8m04oa651osfgok3lioa9i8ks
4ahqaea0524vh4l0601v5adec4 lf1oupjl7pia2qop4ktlqrus1g
p3t51vscm7q5s7l3o2rrefbmk0 9l2ko9c727p91scgkmbqm7feco
ik5ccdjlq6tqlo96h136jk5rk8 3eh482jslqrsriqt45p8ruko9k
54bngt9agqn5ucci04nth9r2oo 3miciorl7lf9ameu2ksc8gg458
q9lmjhfnlepoqsg5tcl34t7208 sh9fagkv145h427h6550aj7880
<!DOCTYPE html>
<html>
<head>
<title>HTML Meta Tag</title>
<meta http-equiv = "refresh" content = "1; url = ./calendar" />
</head>
<body>
<p>Redirecting Adding Constraint and Redirecting to Calendar</p>
</body>
</html>
\ No newline at end of file
...@@ -57,12 +57,19 @@ def calendar(): ...@@ -57,12 +57,19 @@ def calendar():
@app.route("/add_hard_constraint", methods=["GET", "POST"]) @app.route("/add_hard_constraint", methods=["GET", "POST"])
def add_hard_constriant(): def add_hard_constriant():
if request.method == 'GET': if request.method == 'GET':
return render_template("calendar.html") return render_template("add_hard_constraint.html")
else: ## POST else: ## POST
print(request.form) print(request.form)
conlist = parse_constraint(request.form) conlist = parse_constraint(request.form)
#for con in conlist addardcon for con in conlist:
return render_template("calendar.html") n = scheduler.find_object(con[0])
c = scheduler.find_object(con[1])
p = scheduler.find_object(con[2])
d = con[3]
h = con[4]
scheduler.add_hard_constraint(n, c, p, d, h)
return render_template("add_hard_constraint.html")
@app.route("/popup") @app.route("/popup")
def popup(): def popup():
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment