Mise à jour de 'app.py'
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Correction d'une erreur suite au retrait de deux champs d'entrées dans index.html
This commit is contained in:
parent
0696c81a83
commit
007416f1a9
6
app.py
6
app.py
@ -50,13 +50,11 @@ def download_file():
|
||||
url1 = request.form['url1']
|
||||
url2 = request.form['url2']
|
||||
url3 = request.form['url3']
|
||||
url4 = request.form['url4']
|
||||
url5 = request.form['url5']
|
||||
|
||||
urls = [url1, url2, url3, url4, url5]
|
||||
urls = [url1, url2, url3]
|
||||
|
||||
# Vérifier si au moins un champ est vide
|
||||
if not url1 and not url2 and not url3 and not url4 and not url5:
|
||||
if not url1 and not url2 and not url3 :
|
||||
return render_template('erreur.html')
|
||||
|
||||
# Créer le dossier 'downloads' s'il n'existe pas
|
||||
|
Loading…
x
Reference in New Issue
Block a user