update 数据导出优化
This commit is contained in:
20
main_gui.py
20
main_gui.py
@@ -518,7 +518,9 @@ class MainWindow(QMainWindow):
|
||||
reserved_codes = calculator.read_stock_codes_list(Path.cwd() / "config" / "Reservedcode.txt")
|
||||
remove_codes = calculator.read_stock_codes_list(Path.cwd() / "config" / "Removecode.txt")
|
||||
market_data_ll = calculator.get_stock_codes() # 使用按照价格和流通股数量筛选的那个表格
|
||||
market_data = market_data_ll + reserved_codes - remove_codes
|
||||
|
||||
# market_data = list(set(market_data_ll) - set(remove_codes)) + reserved_codes
|
||||
market_data = market_data_ll + reserved_codes
|
||||
|
||||
# 根据统计时间进行命名
|
||||
target_table_name = 'hk_monthly_avg_' + datetime.now().strftime("%Y%m%d")
|
||||
@@ -619,6 +621,22 @@ class MainWindow(QMainWindow):
|
||||
|
||||
def main():
|
||||
"""主函数"""
|
||||
# 设置调试环境
|
||||
try:
|
||||
# 添加 .vscode 目录到 Python 路径
|
||||
vscode_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), '.vscode')
|
||||
if vscode_path not in sys.path:
|
||||
sys.path.insert(0, vscode_path)
|
||||
|
||||
from debug_helper import setup_debugging, enable_breakpoints
|
||||
setup_debugging()
|
||||
enable_breakpoints()
|
||||
print("Debugging environment initialized")
|
||||
except ImportError as e:
|
||||
print(f"Debug helper not available: {e}")
|
||||
except Exception as e:
|
||||
print(f"Error setting up debugging: {e}")
|
||||
|
||||
app = QApplication(sys.argv)
|
||||
|
||||
# 设置应用程序样式
|
||||
|
||||
Reference in New Issue
Block a user