From 772cd13eef86b8190e2430c21de037c848888199 Mon Sep 17 00:00:00 2001 From: Nikhil Narayana Date: Tue, 19 Nov 2019 15:00:05 -0500 Subject: [PATCH] actually unrestrict SA --- meleeuploader/forms.py | 27 +++++++++++++-------------- setup.py | 2 +- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/meleeuploader/forms.py b/meleeuploader/forms.py index 21998d4..1ec3621 100755 --- a/meleeuploader/forms.py +++ b/meleeuploader/forms.py @@ -688,20 +688,19 @@ def __sa_update(self, data): prefix = "" mtype = "" suffix = "" - if consts.game == "melee": - try: - self.__p1chars = self._p1char.value - self.__p2chars = self._p2char.value - p1char = " ".join(data.get('image1', "").split(" ")[:-1]) - p2char = " ".join(data.get('image2', "").split(" ")[:-1]) - if p1char not in self.__p1chars: - self.__p1chars.append(p1char) - if p2char not in self.__p2chars: - self.__p2chars.append(p2char) - self._p1char.load_form(dict(selected=self.__p1chars)) - self._p2char.load_form(dict(selected=self.__p2chars)) - except Exception as e: - print(e) + try: + self.__p1chars = self._p1char.value + self.__p2chars = self._p2char.value + p1char = " ".join(data.get('image1', "").split(" ")[:-1]) + p2char = " ".join(data.get('image2', "").split(" ")[:-1]) + if p1char not in self.__p1chars: + self.__p1chars.append(p1char) + if p2char not in self.__p2chars: + self.__p2chars.append(p2char) + self._p1char.load_form(dict(selected=self.__p1chars)) + self._p2char.load_form(dict(selected=self.__p2chars)) + except Exception as e: + print(e) self._p1.value = data.get('player1', self._p1.value) self._p2.value = data.get('player2', self._p2.value) try: diff --git a/setup.py b/setup.py index 2ef29ab..f20db92 100755 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from os import path here = path.abspath(path.dirname(__file__)) -version = '1.16.1' +version = '1.16.2' long_des = "" with open(path.join(here, 'README.md')) as f: