Explorar o código

Fixed equality comparison in Label.py

Stefan Schmidt %!s(int64=7) %!d(string=hai) anos
pai
achega
45a994016b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      code/ID2TLib/Label.py

+ 1 - 1
code/ID2TLib/Label.py

@@ -21,7 +21,7 @@ class Label:
         self.parameters = parameters
 
     def __eq__(self, other):
-        return self.timestamp == other.timestamp
+        return self.timestamp_start == other.timestamp_start
 
     def __lt__(self, other):
         return self.timestamp_start < other.timestamp_start