From 559602d19badb3ffb4bb0990286420c02d1a8791 Mon Sep 17 00:00:00 2001 From: Kfir Hadas Date: Thu, 25 May 2017 22:15:32 +0300 Subject: [PATCH 1/2] Fix inverted icons in file list --- nyaa/templates/view.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nyaa/templates/view.html b/nyaa/templates/view.html index 833319e..187a056 100644 --- a/nyaa/templates/view.html +++ b/nyaa/templates/view.html @@ -93,9 +93,10 @@ {% else %} From d7181cf6a1d99b1c88b918e43882604d80f6d392 Mon Sep 17 00:00:00 2001 From: Kfir Hadas Date: Thu, 25 May 2017 22:19:42 +0300 Subject: [PATCH 2/2] PEP8 --- nyaa/routes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nyaa/routes.py b/nyaa/routes.py index 49f2224..8893567 100644 --- a/nyaa/routes.py +++ b/nyaa/routes.py @@ -664,7 +664,9 @@ def view_torrent(torrent_id): flask.flash('Comment successfully posted.', 'success') - return flask.redirect(flask.url_for('view_torrent', torrent_id=torrent_id, _anchor='com-'+str(torrent_count))) + return flask.redirect(flask.url_for('view_torrent', + torrent_id=torrent_id, + _anchor='com-' + str(torrent_count))) # Only allow owners and admins to edit torrents can_edit = flask.g.user and (flask.g.user is torrent.user or flask.g.user.is_moderator)