frame plan
This commit is contained in:
parent
84f9f39356
commit
ec5026a95c
9
app.py
9
app.py
@ -48,15 +48,18 @@ def upload():
|
|||||||
filename = secure_filename(f.filename)
|
filename = secure_filename(f.filename)
|
||||||
f.save(os.path.join(CWD, "metadatum", filename))
|
f.save(os.path.join(CWD, "metadatum", filename))
|
||||||
return redirect(url_for("home"))
|
return redirect(url_for("home"))
|
||||||
|
|
||||||
return render_template("index.html", upload_form=upload_form)
|
return render_template("index.html", upload_form=upload_form)
|
||||||
|
|
||||||
|
|
||||||
@app.route("/generate", methods=["POST"])
|
@app.route("/generate", methods=["POST"])
|
||||||
def generate():
|
def generate():
|
||||||
upload_form = UploadForm()
|
upload_form = UploadForm()
|
||||||
|
|
||||||
if upload_form.validate_on_submit():
|
if upload_form.validate_on_submit():
|
||||||
print(upload_form.title.data)
|
# fix make_cards
|
||||||
else:
|
# pass some sort of condition to render_template to sort out the frame
|
||||||
print("didnt work")
|
# render
|
||||||
|
pass
|
||||||
|
|
||||||
return render_template("index.html", upload_form=upload_form)
|
return render_template("index.html", upload_form=upload_form)
|
||||||
|
Loading…
Reference in New Issue
Block a user