1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 20:00:01 +00:00

Merge pull request #160 from nyaadevs/pep8-fixes

Fix lint errors
This commit is contained in:
katnyaa 2017-05-22 14:13:47 +00:00 committed by GitHub
commit 34031126ed
4 changed files with 10 additions and 8 deletions

View file

@ -193,7 +193,7 @@ def v2_api_upload():
# #################################### TEMPORARY ####################################
from orderedset import OrderedSet
from orderedset import OrderedSet # noqa: E402
@api_blueprint.route('/ghetto_import', methods=['POST'])

View file

@ -166,7 +166,6 @@ class EditForm(FlaskForm):
class UploadForm(FlaskForm):
torrent_file = FileField('Torrent file', [
FileRequired()
])

View file

@ -215,7 +215,9 @@ def home(rss):
query_results = search_elastic(**query_args)
if render_as_rss:
return render_rss('"{}"'.format(search_term), query_results, use_elastic=True, magnet_links=use_magnet_links)
return render_rss(
'"{}"'.format(search_term), query_results,
use_elastic=True, magnet_links=use_magnet_links)
else:
rss_query_string = _generate_query_string(
search_term, category, quality_filter, user_name)
@ -637,7 +639,8 @@ def edit_torrent(torrent_id):
db.session.commit()
flask.flash(flask.Markup(
'Torrent has been successfully edited! Changes might take a few minutes to show up.'), 'info')
'Torrent has been successfully edited! Changes might take a few minutes to show up.'),
'info')
return flask.redirect(flask.url_for('view_torrent', torrent_id=torrent.id))
else: