|
|
@ -12,6 +12,7 @@ def index():
|
|
|
|
def download():
|
|
|
|
def download():
|
|
|
|
form = DownloadForm()
|
|
|
|
form = DownloadForm()
|
|
|
|
if form.validate_on_submit():
|
|
|
|
if form.validate_on_submit():
|
|
|
|
|
|
|
|
flash('The download should start immediately.')
|
|
|
|
return render_template('download.html', form=form, filename='test.mp3')
|
|
|
|
return render_template('download.html', form=form, filename='test.mp3')
|
|
|
|
elif request.method == 'GET':
|
|
|
|
elif request.method == 'GET':
|
|
|
|
form.date.data = datetime.now() - timedelta(hours = 1)
|
|
|
|
form.date.data = datetime.now() - timedelta(hours = 1)
|
|
|
|