This commit is contained in:
parent
ca4f97c07b
commit
f65aa23021
10
Flask/app.py
10
Flask/app.py
|
@ -404,6 +404,16 @@ def config_post():
|
|||
def logs():
|
||||
return(render_template("logs.html"))
|
||||
|
||||
|
||||
|
||||
|
||||
@app.route('/pdf/<path:filename>', methods=['GET', 'POST'])
|
||||
def download(filename):
|
||||
return send_from_directory(directory='/user_data', filename=filename)
|
||||
|
||||
|
||||
|
||||
|
||||
def maxi(dict):
|
||||
m = 0
|
||||
for i in dict :
|
||||
|
|
|
@ -64,6 +64,7 @@
|
|||
<tr><td>logs viewer</td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<a href="/images/myw3schoolsimage.jpg" download></a>
|
||||
{% endif %}
|
||||
{%endblock %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue