From 6490642bc032bdba101585e6cb9b8c33597a7745 Mon Sep 17 00:00:00 2001 From: jimbob88 Date: Thu, 28 Mar 2019 16:28:36 +0000 Subject: [PATCH] Fixes #9 --- beer_engine.py | 2 +- beer_engine2.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/beer_engine.py b/beer_engine.py index 74adcb1..5b55333 100644 --- a/beer_engine.py +++ b/beer_engine.py @@ -1542,7 +1542,7 @@ def open_file(self, file): elif sublist[1] == 'ebufixed': self.is_ebufixed.set(sublist[2]) - self.sixth_tab.original_additions = list(set(self.sixth_tab.original_additions, key=self.sixth_tab.original_additions.index) - set(self.sixth_tab.added_additions)) + self.sixth_tab.original_additions = sorted(set(self.sixth_tab.original_additions) - set(self.sixth_tab.added_additions), key=self.sixth_tab.original_additions.index) #print(set(self.sixth_tab.original_additions) - set(self.sixth_tab.added_additions)) self.fifth_tab.open_locals() self.sixth_tab.refresh_all() diff --git a/beer_engine2.py b/beer_engine2.py index 3efdeb7..280a7f8 100644 --- a/beer_engine2.py +++ b/beer_engine2.py @@ -1541,7 +1541,7 @@ def open_file(self, file): elif sublist[1] == u'ebufixed': self.is_ebufixed.set(sublist[2]) - self.sixth_tab.original_additions = list(set(self.sixth_tab.original_additions, key=self.sixth_tab.original_additions.index) - set(self.sixth_tab.added_additions)) + self.sixth_tab.original_additions = sorted(set(self.sixth_tab.original_additions) - set(self.sixth_tab.added_additions), key=self.sixth_tab.original_additions.index) #print(set(self.sixth_tab.original_additions) - set(self.sixth_tab.added_additions)) self.fifth_tab.open_locals() self.sixth_tab.refresh_all()