Ajout d'un titre et d'un bouton quand le téléchargement est terminé
This commit is contained in:
parent
50ab4129dc
commit
98f2a46afb
8
app.py
8
app.py
@ -20,12 +20,8 @@ def index():
|
|||||||
url = request.form['url']
|
url = request.form['url']
|
||||||
result = process_file(url)
|
result = process_file(url)
|
||||||
return '''
|
return '''
|
||||||
<form method="POST">
|
<h1> Téléchargement terminé </h1>
|
||||||
<label for="url">URL:</label>
|
<button onclick="window.location.href = '/';">Télécharger à nouveau</button>
|
||||||
<input type="text" name="url" id="url">
|
|
||||||
<input type="submit" value="Téléchargement">
|
|
||||||
</form>
|
|
||||||
<a> Téléchargement terminé </a>
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
def process_file(url):
|
def process_file(url):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user