mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-02 03:48:19 +08:00
remove print
This commit is contained in:
parent
b297a3d7af
commit
038b3bd423
@ -497,7 +497,6 @@ class HubManager(metaclass=SingletonType):
|
|||||||
abs_path = os.path.abspath(filename) # 当前文件的绝对路径
|
abs_path = os.path.abspath(filename) # 当前文件的绝对路径
|
||||||
path_parts = pathlib.Path(abs_path).parts
|
path_parts = pathlib.Path(abs_path).parts
|
||||||
local_base = path_parts[-4] if path_parts[-3] in ('pf', 'sys', 'ind', 'other') else path_parts[-5]
|
local_base = path_parts[-4] if path_parts[-3] in ('pf', 'sys', 'ind', 'other') else path_parts[-5]
|
||||||
print(path_parts)
|
|
||||||
hub_model = self._session.query(HubModel.name).filter_by(local_base=local_base).first()
|
hub_model = self._session.query(HubModel.name).filter_by(local_base=local_base).first()
|
||||||
checkif(hub_model is None, local_base, HubNotFoundError)
|
checkif(hub_model is None, local_base, HubNotFoundError)
|
||||||
return hub_model.name
|
return hub_model.name
|
||||||
|
Loading…
Reference in New Issue
Block a user