Преглед изворни кода

Fixed equality comparison in Label.py

Stefan Schmidt пре 7 година
родитељ
комит
45a994016b
1 измењених фајлова са 1 додато и 1 уклоњено
  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