home
·
contact
·
privacy
projects
/
plomtask
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More refactoring.
[plomtask]
/
plomtask
/
conditions.py
diff --git
a/plomtask/conditions.py
b/plomtask/conditions.py
index 629510af868ae401c609b2c9307fa21f9c732c23..cba606d1a71dd19a0e410677f0ee8fc528d5bdbf 100644
(file)
--- a/
plomtask/conditions.py
+++ b/
plomtask/conditions.py
@@
-19,11
+19,6
@@
class Condition(BaseModel[int]):
self.description = VersionedAttribute(self, 'condition_descriptions',
'')
self.description = VersionedAttribute(self, 'condition_descriptions',
'')
- def __lt__(self, other: Condition) -> bool:
- assert isinstance(self.id_, int)
- assert isinstance(other.id_, int)
- return self.id_ < other.id_
-
@classmethod
def from_table_row(cls, db_conn: DatabaseConnection,
row: Row | list[Any]) -> Condition:
@classmethod
def from_table_row(cls, db_conn: DatabaseConnection,
row: Row | list[Any]) -> Condition: