fix sentry not showing account info correctly (i hope?)

This commit is contained in:
codl 2017-09-15 08:51:14 +02:00
parent 1ff90e499f
commit cd30b6b606
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 2 additions and 4 deletions

View File

@ -151,9 +151,6 @@ class Account(TimestampMixin, RemoteIDMixin):
# backref: posts # backref: posts
# backref: sessions # backref: sessions
def __str__(self):
return f"<Account({self.id}, {self.screen_name}, {self.display_name})>"
def post_count(self): def post_count(self):
return Post.query.with_parent(self).count() return Post.query.with_parent(self).count()
@ -183,7 +180,8 @@ class Account(TimestampMixin, RemoteIDMixin):
class Account(Account, db.Model): class Account(Account, db.Model):
pass def __str__(self):
return f"<Account({self.id}, {self.screen_name}, {self.display_name})>"
class OAuthToken(db.Model, TimestampMixin): class OAuthToken(db.Model, TimestampMixin):