修改telegram命令错误
This commit is contained in:
@@ -230,7 +230,7 @@ def cmd_analyze(symbol: str):
|
|||||||
spec = importlib.util.spec_from_file_location(
|
spec = importlib.util.spec_from_file_location(
|
||||||
"apollo_cycle", Path(__file__).parent / "apollo_cycle.py"
|
"apollo_cycle", Path(__file__).parent / "apollo_cycle.py"
|
||||||
)
|
)
|
||||||
mod = importlib.util.load_from_spec(spec)
|
mod = importlib.util.module_from_spec(spec)
|
||||||
spec.loader.exec_module(mod)
|
spec.loader.exec_module(mod)
|
||||||
result = mod.run_analysis(sym)
|
result = mod.run_analysis(sym)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
@@ -247,7 +247,7 @@ def cmd_scan():
|
|||||||
spec = importlib.util.spec_from_file_location(
|
spec = importlib.util.spec_from_file_location(
|
||||||
"apollo_cycle", Path(__file__).parent / "apollo_cycle.py"
|
"apollo_cycle", Path(__file__).parent / "apollo_cycle.py"
|
||||||
)
|
)
|
||||||
mod = importlib.util.load_from_spec(spec)
|
mod = importlib.util.module_from_spec(spec)
|
||||||
spec.loader.exec_module(mod)
|
spec.loader.exec_module(mod)
|
||||||
|
|
||||||
symbols = CFG["symbols"]
|
symbols = CFG["symbols"]
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ def cmd_analyze(symbol: str):
|
|||||||
"ares_cycle",
|
"ares_cycle",
|
||||||
Path(__file__).parent / "ares_cycle.py"
|
Path(__file__).parent / "ares_cycle.py"
|
||||||
)
|
)
|
||||||
mod = importlib.util.load_from_spec(spec)
|
mod = importlib.util.module_from_spec(spec)
|
||||||
spec.loader.exec_module(mod)
|
spec.loader.exec_module(mod)
|
||||||
|
|
||||||
result = mod.run_analysis(symbol) # Returns signal dict or None
|
result = mod.run_analysis(symbol) # Returns signal dict or None
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ def _run_analysis(sym):
|
|||||||
spec = importlib.util.spec_from_file_location(
|
spec = importlib.util.spec_from_file_location(
|
||||||
"athena_cycle", Path(__file__).parent / "athena_cycle.py"
|
"athena_cycle", Path(__file__).parent / "athena_cycle.py"
|
||||||
)
|
)
|
||||||
mod = importlib.util.load_from_spec(spec)
|
mod = importlib.util.module_from_spec(spec)
|
||||||
spec.loader.exec_module(mod)
|
spec.loader.exec_module(mod)
|
||||||
return mod.run_analysis(sym)
|
return mod.run_analysis(sym)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user