fix the road_usage issue dennis found.

This commit is contained in:
gluap 2023-03-26 22:34:16 +02:00
parent eda3bf2688
commit cf8358d14b
No known key found for this signature in database

View file

@ -166,6 +166,13 @@ class RoadUsage(Base):
def __repr__(self):
return f"<RoadUsage {self.id}>"
def __hash__(self):
return int(self.hex_hash, 16)
def __eq__(self, other):
return self.hex_hash == other.hex_hash
NOW = text("NOW()")