diff --git a/api/obs/api/db.py b/api/obs/api/db.py index 4e870ca..5793558 100644 --- a/api/obs/api/db.py +++ b/api/obs/api/db.py @@ -166,6 +166,13 @@ class RoadUsage(Base): def __repr__(self): return f"" + def __hash__(self): + return int(self.hex_hash, 16) + + def __eq__(self, other): + return self.hex_hash == other.hex_hash + + NOW = text("NOW()")