Add some comments to the code
This commit is contained in:
parent
27caa77a65
commit
32e41b160b
@ -220,6 +220,8 @@ async def calculate_trade_profies(commodity, scu=None):
|
|||||||
name=commodity,
|
name=commodity,
|
||||||
url="%s%s" % (wiki_url, commodity),
|
url="%s%s" % (wiki_url, commodity),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Loop through every system/outpost and find the cheapest place selling the commodity
|
||||||
costs = {}
|
costs = {}
|
||||||
for systems, stations in response.items():
|
for systems, stations in response.items():
|
||||||
for station, trades in stations.items():
|
for station, trades in stations.items():
|
||||||
@ -237,6 +239,7 @@ async def calculate_trade_profies(commodity, scu=None):
|
|||||||
inline=True,
|
inline=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Same logic, but finding the place buying the commodity for the most
|
||||||
profits = {}
|
profits = {}
|
||||||
for systems, stations in response.items():
|
for systems, stations in response.items():
|
||||||
for station, trades in stations.items():
|
for station, trades in stations.items():
|
||||||
|
@ -11,4 +11,4 @@ printf "\n[-] Running dragon bot in test mode\n"
|
|||||||
chmod +x ./app/bot.py
|
chmod +x ./app/bot.py
|
||||||
docker build -f ./Dockerfile-test-env -t dragon-bot-test . || exit
|
docker build -f ./Dockerfile-test-env -t dragon-bot-test . || exit
|
||||||
|
|
||||||
docker run -ti -v $(pwd)/app:/app --rm --name dragon-bot-test -e DRAGON_ENV=test -e token="MzQ1MjkwMTI5OTQ4Mjc4Nzg0.DG5IBw._9umb82PrL22bPe7GjmHClU-NtU" dragon-bot-test bash
|
docker run -ti -v $(pwd)/app:/app --rm --name dragon-bot-test -e DRAGON_ENV=test -e token="MzQ1MjkwMTI5OTQ4Mjc4Nzg0.G16mG8.vxgQLwnbusG9fSlXvAFV0wTUmRsJJlPnQ3bpco" dragon-bot-test bash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user