Closed Ra2-IFV closed 2 months ago
此拉取请求实现了若干更改,以提高代码的功能性和可维护性。主要更改包括更新 datetime 的使用、修改交换数据处理以及在启动时添加目录检查。
更改 | 详情 | 文件 |
---|---|---|
更新 datetime 使用 |
|
modules/self_contained/bf1_info/__init__.py |
修改交换数据处理 |
|
modules/self_contained/bf1_info/__init__.py utils/bf1/draw/__init__.py |
在启动时添加目录检查 |
|
modules/self_contained/bf1_info/__init__.py |
Works but not perfect enough
Summary by Sourcery
重构日期时间处理以简化和保持一致性,添加启动检查以确保所需目录存在,并增强交换数据处理逻辑以支持强制更新和改进数据管理。
增强功能:
Original summary in English
## Summary by Sourcery Refactor datetime handling for simplicity and consistency, add a startup check for required directories, and enhance the exchange data handling logic to support force updates and improve data management. Enhancements: - Simplify datetime usage by replacing 'datetime.datetime.now()' with 'datetime.now()' throughout the codebase. - Improve directory management by adding a startup check to create required directories if they do not exist. - Enhance the 'get_exchange' function to handle force updates and improve data handling logic.