1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 14:00:00 +00:00

Jeez fine PEP8 I get it

This commit is contained in:
TheAMM 2017-05-27 18:10:21 +03:00
parent 6f4aad56ab
commit f7ed2c06d3

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