Skip to content

Commit

Permalink
Merge pull request #11 from mraniki/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
mraniki authored Apr 23, 2023
2 parents 9c364dd + 29ad1a6 commit eda4d96
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion examples/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
async def main():
while True:
fmo = findmyorder()

print(fmo)

msg_test = "this is a test"

order = fmo.search(msg_test)
Expand Down
3 changes: 1 addition & 2 deletions findmyorder/core.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[default]
# FMO_IDENTIFIER = "buy"
fmo_identifier = ["BUY", "SELL", "buy", "sell","Buy","Sell"]
FMO_IDENTIFIER = ["BUY", "SELL", "buy", "sell","Buy","Sell"]
# DIRECTION_1 = ["BUY", "buy", "Buy","long","LONG","Long"]


Expand Down
8 changes: 4 additions & 4 deletions findmyorder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


from findmyorder import __version__
from findmyorder.config import settings
from config import settings

# import pyparsing as pp

Expand All @@ -24,8 +24,8 @@ def search(self,
message_to_parse: str = None,
):
try:
print(settings.fmo_identifier)
myDict = settings.fmo_identifier
print(settings.FMO_IDENTIFIER)
myDict = settings.FMO_IDENTIFIER

for word in myDict:
self.logger.debug(f"Loop check {word}")
Expand All @@ -35,7 +35,7 @@ def search(self,
self.logger.debug(f"no word identified in {message_to_parse}")
return False
except Exception as e:
self.logger.debug(f"error identify {e}")
self.logger.debug(f"error search {e}")
return False

# def identify(self,
Expand Down

0 comments on commit eda4d96

Please sign in to comment.