diff --git a/examples/example.py b/examples/example.py index 6366bd1b..929f0963 100644 --- a/examples/example.py +++ b/examples/example.py @@ -12,7 +12,8 @@ async def main(): while True: fmo = findmyorder() - + print(fmo) + msg_test = "this is a test" order = fmo.search(msg_test) diff --git a/findmyorder/core.toml b/findmyorder/core.toml index 8eca22c0..2604ef85 100644 --- a/findmyorder/core.toml +++ b/findmyorder/core.toml @@ -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"] diff --git a/findmyorder/main.py b/findmyorder/main.py index 2f11e06e..ee95d9fc 100644 --- a/findmyorder/main.py +++ b/findmyorder/main.py @@ -4,7 +4,7 @@ from findmyorder import __version__ -from findmyorder.config import settings +from config import settings # import pyparsing as pp @@ -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}") @@ -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,