From 0bacc7404ffb82cd5e9343fe425483b1770e77c8 Mon Sep 17 00:00:00 2001 From: michplunkett <5885605+michplunkett@users.noreply.github.com> Date: Thu, 19 Dec 2024 23:43:54 -0600 Subject: [PATCH] Update database.py --- OpenOversight/app/models/database.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/OpenOversight/app/models/database.py b/OpenOversight/app/models/database.py index ccd93ee79..661828193 100644 --- a/OpenOversight/app/models/database.py +++ b/OpenOversight/app/models/database.py @@ -183,7 +183,7 @@ class Department(BaseModel, TrackUpdates, Serializable): __table_args__ = (UniqueConstraint("name", "state", name="departments_name_state"),) def __repr__(self): - return f"" + return f"" def to_custom_dict(self): return { @@ -430,7 +430,7 @@ class Salary(BaseModel, TrackUpdates, Serializable): ) def __repr__(self): - return f"" @property def total_pay(self) -> float: @@ -729,6 +729,9 @@ class Link(BaseModel, TrackUpdates, Serializable): db.Boolean, nullable=False, default=False ) + def __repr__(self): + return f"" + @validates("url") def validate_url(self, key, url): return url_validator(url)