Skip to content

Commit

Permalink
actually unrestrict SA
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Nov 19, 2019
1 parent e038896 commit 772cd13
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
27 changes: 13 additions & 14 deletions meleeuploader/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 772cd13

Please sign in to comment.