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)