Skip to content

Commit

Permalink
Final decision
Browse files Browse the repository at this point in the history
  • Loading branch information
gachouchani1999 committed Sep 19, 2021
1 parent 750c484 commit 756223f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Binary file added Report.pptx
Binary file not shown.
4 changes: 1 addition & 3 deletions flaskr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ def index():



@app.route('/download', methods=['GET','POST'] )
@app.route('/download')
def download():
if request.method == 'POST':

filename_new = f.filename[:f.filename.find('.')]
path = '../'+filename_new + '.pptx'
return send_file(path, as_attachment=True)
Expand Down
Binary file added report.docx
Binary file not shown.

0 comments on commit 756223f

Please sign in to comment.