Skip to content

Commit

Permalink
💬 comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mraniki committed Jul 3, 2023
1 parent b0fb029 commit a39429e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion findmyorder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,16 @@ async def get_order(
return None

async def replace_instrument(self, order):
""" replace instrument by an alternative instrument """
instrument = order["instrument"]
for item in settings.mapping:
if item["id"] == instrument:
order["instrument"] = item["alt"]
break
return order

async def get_info(self):
""" get info about the class """
return f"{__class__.__name__} {__version__}\n"

# Grammar
Expand Down

0 comments on commit a39429e

Please sign in to comment.