Skip to content

Commit

Permalink
fix bug with loading a queue that was previously uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Mar 7, 2020
1 parent f863dfc commit fca7ced
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions meleeuploader/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,14 +510,14 @@ def __show_hview(self):
self._hwin.show()

def __add_to_qview(self, options):
self._qview += (options.p1, options.p2, " ".join((options.mprefix, options.mtype, options.msuffix)))
self._qview += (options.p1, options.p2, " ".join((options.mprefix, options.mmid, options.msuffix)))
self._queue.put(options)
self._qview.resize_rows_contents()

def __update_qview(self, row, options):
self._qview.set_value(0, row, options.p1)
self._qview.set_value(1, row, options.p2)
self._qview.set_value(2, row, " ".join((options.mprefix, options.mtype, options.msuffix)))
self._qview.set_value(2, row, " ".join((options.mprefix, options.mmid, options.msuffix)))
self._qview.resize_rows_contents()

def __delete_from_queue_view(self, job_num):
Expand Down
8 changes: 4 additions & 4 deletions meleeuploader/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@


def pre_upload(opts):
if opts.mtype == "Grand Finals" and any(x.lower() in opts.msuffix.lower() for x in ("Set 2", "Reset")):
if opts.mmid == "Grand Finals" and any(x.lower() in opts.msuffix.lower() for x in ("Set 2", "Reset")):
opts.msuffix = ""
opts.p1 = opts.p1.split("[L]")[0].strip()
opts.p2 = opts.p2.split("[L]")[0].strip()
if opts.mprefix and opts.msuffix:
opts.mtype = " ".join((opts.mprefix, opts.mtype, opts.msuffix))
opts.mtype = " ".join((opts.mprefix, opts.mmid, opts.msuffix))
elif opts.mprefix:
opts.mtype = " ".join((opts.mprefix, opts.mtype))
opts.mtype = " ".join((opts.mprefix, opts.mmid))
elif opts.msuffix:
opts.mtype = " ".join((opts.mtype, opts.msuffix))
opts.mtype = " ".join((opts.mmid, opts.msuffix))
chars_exist = all(x for x in [opts.p1char, opts.p2char])
title = make_title(opts, chars_exist)
if len(title) > 100:
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.18.6'
version = '1.18.7'

long_des = ""
with open(path.join(here, 'README.md')) as f:
Expand Down

0 comments on commit fca7ced

Please sign in to comment.