From 02a03bd0f27f8646f53b0249b258d444bd39f2a6 Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 13 Apr 2019 12:51:14 +0200 Subject: [PATCH] Fix unequality when comparing sections --- resources/lib/library_sync/sections.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/lib/library_sync/sections.py b/resources/lib/library_sync/sections.py index b37a32f4..8f1ed457 100644 --- a/resources/lib/library_sync/sections.py +++ b/resources/lib/library_sync/sections.py @@ -111,7 +111,9 @@ class Section(object): return (self.section_id == section.section_id and self.name == section.name and self.section_type == section.section_type) - __ne__ = not __eq__ + + def __ne__(self, section): + return not self == section @property def section_id(self):