mirror of
https://github.com/codl/forget
synced 2025-01-03 18:59:23 +01:00
fix sentry not showing account info correctly (i hope?)
This commit is contained in:
parent
1ff90e499f
commit
cd30b6b606
6
model.py
6
model.py
@ -151,9 +151,6 @@ class Account(TimestampMixin, RemoteIDMixin):
|
||||
# backref: posts
|
||||
# backref: sessions
|
||||
|
||||
def __str__(self):
|
||||
return f"<Account({self.id}, {self.screen_name}, {self.display_name})>"
|
||||
|
||||
def post_count(self):
|
||||
return Post.query.with_parent(self).count()
|
||||
|
||||
@ -183,7 +180,8 @@ class Account(TimestampMixin, RemoteIDMixin):
|
||||
|
||||
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user