mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 19:19:59 +00:00
Jeez fine PEP8 I get it
This commit is contained in:
parent
6f4aad56ab
commit
f7ed2c06d3
|
@ -110,7 +110,7 @@ class Torrent(db.Model):
|
||||||
return '<{0} #{1.id} \'{1.display_name}\' {1.filesize}b>'.format(type(self).__name__, self)
|
return '<{0} #{1.id} \'{1.display_name}\' {1.filesize}b>'.format(type(self).__name__, self)
|
||||||
|
|
||||||
def update_comment_count(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
|
return self.comment_count
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in a new issue