mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 14:10:00 +00:00
PEP8
This commit is contained in:
parent
559602d19b
commit
d7181cf6a1
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue