Fix trade function (again)

This commit is contained in:
mez 2025-06-03 07:07:30 +01:00
parent 44b2c1c05e
commit 6723b8a21e

View file

@ -1926,6 +1926,8 @@ def maketrade():
outc.extend(mptc) outc.extend(mptc)
else: else:
trylowch = True trylowch = True
else:
trylowch = False
if trylowch: if trylowch:
inc.extend(lpwc) inc.extend(lpwc)
if len(inc) > len(outc): if len(inc) > len(outc):
@ -1996,6 +1998,8 @@ def maketrade():
outs.extend(mpts) outs.extend(mpts)
else: else:
trylowsp = True trylowsp = True
else:
trylowsp = False
if trylowsp: if trylowsp:
ins.extend(lpws) ins.extend(lpws)
if len(ins) > len(outs): if len(ins) > len(outs):