Jeez fine PEP8 I get it

This commit is contained in:
TheAMM 2017-05-27 18:10:21 +03:00
parent 6f4aad56ab
commit f7ed2c06d3
1 changed files with 1 additions and 1 deletions

View File

@ -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