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

Added Hard Constraint Functionality

parent 756bb33a
elp04q224v9j9hlapb82oa2pi8
cp440dlou67b6tijmp2hfncq88
n7am5q5ck9p8q69o8lidftljvc
e8g887c04em9hqboh6sbd70efs
f7ue0j2g705di5r6mqusl4drs8
vhjv6lpkn5smvi6epnb7qthi4o
84631qcu7c1nhnsg1tl1qkqb2k
tipqura4hdvmurum5b9tng0noo
sgq2nos2sqlumnufu0fgf3oau8
i7v1a51cgtj6k0k4kdap898fq8
o7ebqa1fo4adlfg581l0hr10a4
t5cih6s7dcoqubhma4sbnabip0
vj9190hv14lrvimkvsge34t22c
4ahqaea0524vh4l0601v5adec4
p3t51vscm7q5s7l3o2rrefbmk0
ik5ccdjlq6tqlo96h136jk5rk8
54bngt9agqn5ucci04nth9r2oo
q9lmjhfnlepoqsg5tcl34t7208
gtgvhs7ma7qtoa0pcdm3aijun8
d0hfnt84qv5091vmr56e6vvq88
q3hj6arstuq35lsp80aee2fq9o
of7kros5v8opsa06au48i0m530
g17vcjfr2tpmgkh5uq4toljil4
62e8fuim75c4kjtdvld24hbfbo
l3roqmk1nbpri0v66f459ferps
vnjholu57fri84495vsd78chi4
rvk5nsad42s3dajee1lviihcvo
ijmccbrdc8b0q2ge23l5v5u5ao
3ioiabemrba3744n2d2fk36734
7vhceucp5erlaahfm225ctq4ko
l8m04oa651osfgok3lioa9i8ks
lf1oupjl7pia2qop4ktlqrus1g
9l2ko9c727p91scgkmbqm7feco
3eh482jslqrsriqt45p8ruko9k
3miciorl7lf9ameu2ksc8gg458
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():
@app.route("/add_hard_constraint", methods=["GET", "POST"])
def add_hard_constriant():
if request.method == 'GET':
return render_template("calendar.html")
return render_template("add_hard_constraint.html")
else: ## POST
print(request.form)
conlist = parse_constraint(request.form)
#for con in conlist addardcon
return render_template("calendar.html")
for con in conlist:
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")
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