Skip to content

Commit

Permalink
nearly done
Browse files Browse the repository at this point in the history
  • Loading branch information
gachouchani1999 committed Sep 19, 2021
1 parent 756223f commit 855e12c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 0 deletions.
Binary file modified Report.pptx
Binary file not shown.
2 changes: 2 additions & 0 deletions flaskr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def index():
theme = request.form['theme']
f.save(secure_filename(f.filename))
doc_reader.final_create(int(theme),f.filename)
os.remove(f.filename)
return render_template('download.html')


Expand All @@ -31,6 +32,7 @@ def download():
filename_new = f.filename[:f.filename.find('.')]
path = '../'+filename_new + '.pptx'
return send_file(path, as_attachment=True)



Bootstrap (app)
Expand Down
Binary file removed report.docx
Binary file not shown.

0 comments on commit 855e12c

Please sign in to comment.