eyeonus / Trade-Dangerous

Mozilla Public License 2.0
97 stars 31 forks source link

Added --max-ls parameter to the buy command. #96

Closed phlnx closed 2 years ago

phlnx commented 2 years ago

I took some code from the olddata command and adapted for the buy command. It seems to work for me. I'm not skilled with python, so absolutely feel free to improve/optimise or even discard if this solution is less than ideal :-)

Thank you for your attention.

eyeonus commented 2 years ago

For future reference, variable names in Python are case-sensitive, so "maxLS" and "maxLs" are different variables.

phlnx commented 2 years ago

Appreciate that! I used nano to edit the file, and because I'm kinda new with python I tried several different approaches, I must have missed that.