Fix: Usernotes no longer actually work.
This commit is contained in:
parent
583f4131dc
commit
127aed8dd0
3 changed files with 12 additions and 6 deletions
|
@ -542,6 +542,16 @@ class User(Base):
|
|||
|
||||
return data
|
||||
|
||||
@lazy
|
||||
def json_notes(self, v):
|
||||
data = {'username': self.username,
|
||||
'url': self.url,
|
||||
'id': self.id,
|
||||
'notes': [x.json() for x in self.notes]
|
||||
}
|
||||
|
||||
return data
|
||||
|
||||
@property
|
||||
@lazy
|
||||
def json_raw(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue