Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

fix: Equality detection on trainings

Clémence Lesné372e37b0cc81
diff --git a/app/models/training.py b/app/models/training.py
index 89764b7..19535f1 100644
--- a/app/models/training.py
+++ b/app/models/training.py
@@ -20,7 +20,7 @@ class TrainingModel(BaseModel, frozen=True):
def __eq__(self, other: object) -> bool:
if not isinstance(other, TrainingModel):
- return NotImplemented
+ return False
return self.id == other.id
def __lt__(self, other: object) -> bool: