Ajout d'un titre et d'un bouton quand le téléchargement est terminé

This commit is contained in:
Gu1llaum-3 2022-12-28 17:08:57 +01:00
parent 50ab4129dc
commit 98f2a46afb

8
app.py
View File

@ -20,12 +20,8 @@ def index():
url = request.form['url']
result = process_file(url)
return '''
<form method="POST">
<label for="url">URL:</label>
<input type="text" name="url" id="url">
<input type="submit" value="Téléchargement">
</form>
<a> Téléchargement terminé </a>
<h1> Téléchargement terminé </h1>
<button onclick="window.location.href = '/';">Télécharger à nouveau</button>
'''
def process_file(url):