Administrator
2025-08-14 fbac2e1e6ae16a4fff90a1ec8e7ac680c8bd459b
log_module/log_export.py
@@ -836,12 +836,13 @@
    """
    fdatas = {}
    path = f"{constant.get_path_prefix()}/logs/gp/code_attribute/pre_close_price.{date}.log"
    lines = __load_file_content(path)
    for line in lines:
        if line:
            data = line.split(" - ")[1]
            code, price = data.split("-")[0].strip(), data.split("-")[1].strip()
            fdatas[code] = price
    if os.path.exists(path):
        lines = __load_file_content(path)
        for line in lines:
            if line:
                data = line.split(" - ")[1]
                code, price = data.split("-")[0].strip(), data.split("-")[1].strip()
                fdatas[code] = price
    return fdatas