cellarspoon
3 years ago
No known key found for this signature in database
GPG Key ID: 3789458B3D0C410
1 changed files with
6 additions and
3 deletions
-
app.py
|
|
@ -48,15 +48,18 @@ def upload(): |
|
|
|
filename = secure_filename(f.filename) |
|
|
|
f.save(os.path.join(CWD, "metadatum", filename)) |
|
|
|
return redirect(url_for("home")) |
|
|
|
|
|
|
|
return render_template("index.html", upload_form=upload_form) |
|
|
|
|
|
|
|
|
|
|
|
@app.route("/generate", methods=["POST"]) |
|
|
|
def generate(): |
|
|
|
upload_form = UploadForm() |
|
|
|
|
|
|
|
if upload_form.validate_on_submit(): |
|
|
|
print(upload_form.title.data) |
|
|
|
else: |
|
|
|
print("didnt work") |
|
|
|
# fix make_cards |
|
|
|
# pass some sort of condition to render_template to sort out the frame |
|
|
|
# render |
|
|
|
pass |
|
|
|
|
|
|
|
return render_template("index.html", upload_form=upload_form) |
|
|
|