Merged two functions, improved comments

This commit is contained in:
Mart van Santen 2022-10-04 18:51:04 +08:00
parent 4d94d389cd
commit 808533fabd
2 changed files with 9 additions and 31 deletions

View file

@ -174,7 +174,7 @@ class App(db.Model):
def to_dict(self):
"""
represent this object as a json object. Return JSON object
represent this object as a dict, compatible for JSON output
"""
return {"id": self.id,