feat(Core/UI): 백테스트 전역 엔진 선택 버튼 추가 및 스캘핑 Rust 방어로직 포팅 1차 완료
This commit is contained in:
17
scratch/turn_on_ls_bulk.py
Normal file
17
scratch/turn_on_ls_bulk.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import sys, os
|
||||
from datetime import datetime
|
||||
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/..')
|
||||
from database import TradeDB
|
||||
|
||||
db = TradeDB()
|
||||
try:
|
||||
now = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
|
||||
db.conn.execute("""
|
||||
INSERT INTO env_config_ext (env_key, env_value, updated_at)
|
||||
VALUES ('LS_FEED_FALLBACK_SUBSCRIBE', 'True', %s)
|
||||
ON DUPLICATE KEY UPDATE env_value = 'True', updated_at = %s
|
||||
""", (now, now))
|
||||
db.conn.commit()
|
||||
print("✅ LS_FEED_FALLBACK_SUBSCRIBE = 'True' 적용 완료")
|
||||
finally:
|
||||
db.close()
|
||||
Reference in New Issue
Block a user