Parcourir la source

Fixed equality comparison in Label.py

Stefan Schmidt il y a 6 ans
Parent
commit
45a994016b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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