From f7ed2c06d35e935c783ca810e912e68247c2c101 Mon Sep 17 00:00:00 2001 From: TheAMM Date: Sat, 27 May 2017 18:10:21 +0300 Subject: [PATCH] Jeez fine PEP8 I get it --- nyaa/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nyaa/models.py b/nyaa/models.py index 5d386da..18178d6 100755 --- a/nyaa/models.py +++ b/nyaa/models.py @@ -110,7 +110,7 @@ class Torrent(db.Model): return '<{0} #{1.id} \'{1.display_name}\' {1.filesize}b>'.format(type(self).__name__, self) def update_comment_count(self): - self.comment_count = Comment.query.filter_by(torrent_id = self.id).count() + self.comment_count = Comment.query.filter_by(torrent_id=self.id).count() return self.comment_count @property