interface clean up

This commit is contained in:
Bryan Bailey
2019-11-07 18:45:48 -05:00
parent bbe2d7a8f7
commit c65cce4545
6 changed files with 223 additions and 17 deletions

View File

@@ -48,6 +48,8 @@ def index():
if form.validate_on_submit():
soup = ripper.get_soup_obj(form.search.data, headers)
download_comic_files(soup)
return render_template('success.html', title=ripper.get_title(soup))
title = ripper.get_title(soup)
cover = title + ' 000.jpg'
return render_template('success.html', title=title, cover=cover)
return render_template('index.html', form=form)