(self)
| 38 | self.times_fixed = 1 if success else 0 |
| 39 | |
| 40 | def to_dict(self) -> Dict: |
| 41 | return { |
| 42 | "error_type": self.error_type, |
| 43 | "error_message": self.error_message, |
| 44 | "fix": self.fix, |
| 45 | "success": self.success, |
| 46 | "context": self.context, |
| 47 | "created_at": self.created_at, |
| 48 | "times_seen": self.times_seen, |
| 49 | "times_fixed": self.times_fixed, |
| 50 | } |
| 51 | |
| 52 | @classmethod |
| 53 | def from_dict(cls, data: Dict) -> "ErrorPattern": |