Your ROOT_URL in app.ini is http://192.168.1.7:3000/ but you are visiting http://shqkxh.org:3000/guofu/dolphin-dev/commit/1764036d81cdb3a81de265cc0f25221bef94e2cf?style=split&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
3 additions and
2 deletions
@ -5,7 +5,7 @@ import dolphindb as ddb
class DDBBase ( object ) :
class DDBBase ( object ) :
ddb_config = {
ddb_config = {
' host ' : ' 192.168.1. 16 7' ,
' host ' : ' 192.168.1. 7' ,
' username ' : ' admin ' ,
' username ' : ' admin ' ,
' password ' : ' 123456 ' ,
' password ' : ' 123456 ' ,
}
}
@ -365,8 +365,9 @@ class DDBHFTLoader(DDBLoader):
elif ( type_name , stock_id , ' START ' ) in self . dump_journal_df . index :
elif ( type_name , stock_id , ' START ' ) in self . dump_journal_df . index :
# 任务已经开始,但是没有完全结束,就需要逐个检查日期,跳过已经录入输入的交易日数据
# 任务已经开始,但是没有完全结束,就需要逐个检查日期,跳过已经录入输入的交易日数据
# 同时, 也不会再往日志文件中写入START记录
# 同时, 也不会再往日志文件中写入START记录
partitioned_table_name = type_name + self . ddb_partition_table_suffix
_journal_dt = self . ddb_sess . run ( f """
_journal_dt = self . ddb_sess . run ( f """
select m_nDate from tbl where code = ' {stock_id} ' group by m_nDate map ;
select m_nDate from loadTable( " {self.ddb_pa th}" , " {partitioned_ta ble_name}" ) where code = ' {stock_id} ' group by m_nDate map ;
""" ).set_index( ' m_nDate ' )
""" ).set_index( ' m_nDate ' )
else :
else :
_journal_dt = None
_journal_dt = None