fix the road_usage issue dennis found.
This commit is contained in:
parent
eda3bf2688
commit
cf8358d14b
1 changed files with 7 additions and 0 deletions
|
@ -166,6 +166,13 @@ class RoadUsage(Base):
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return f"<RoadUsage {self.id}>"
|
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()")
|
NOW = text("NOW()")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue