fix missing self. in prints of Settings __repr__

This commit is contained in:
2021-02-13 20:19:14 +11:00
parent 236beb70d8
commit 0fe5d97317

View File

@@ -15,7 +15,7 @@ class Settings(db.Model):
storage_path = db.Column(db.String) storage_path = db.Column(db.String)
def __repr__(self): def __repr__(self):
return f"<id: {id}, import_path: {import_path}, storage_path: {storage_path}>" return f"<id: {self.id}, import_path: {self.import_path}, storage_path: {self.storage_path}>"
################################################################################ ################################################################################
# Helper class that inherits a .dump() method to turn class Settings into json / useful in jinja2 # Helper class that inherits a .dump() method to turn class Settings into json / useful in jinja2