Pārlūkot izejas kodu

Fixed equality comparison in Label.py

Stefan Schmidt 6 gadi atpakaļ
vecāks
revīzija
45a994016b
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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