'commit'
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# 采集配置
|
# 采集配置
|
||||||
SCROLL_DISTANCE_RATIO = 0.3
|
SCROLL_DISTANCE_RATIO = 0.3
|
||||||
MAX_STATIONS_COUNT = 30
|
MAX_STATIONS_COUNT = 20
|
||||||
FIRST_RUN_ONLY_ONE_STATION = False
|
FIRST_RUN_ONLY_ONE_STATION = False
|
||||||
REDIS_STATION_EXPIRE = 120
|
REDIS_STATION_EXPIRE = 120
|
||||||
|
|
||||||
|
|||||||
@@ -541,18 +541,6 @@ async def main():
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"{operator} 导出失败: {e}")
|
logger.error(f"{operator} 导出失败: {e}")
|
||||||
|
|
||||||
if excel_paths:
|
|
||||||
zip_filename = f"充电场站数据_{ts}.zip"
|
|
||||||
zip_path = os.path.join(export_dir, zip_filename)
|
|
||||||
try:
|
|
||||||
with zipfile.ZipFile(zip_path, "w", compression=zipfile.ZIP_DEFLATED) as zf:
|
|
||||||
for path in excel_paths:
|
|
||||||
if os.path.isfile(path):
|
|
||||||
zf.write(path, arcname=os.path.basename(path))
|
|
||||||
logger.info(f"ZIP 打包完成: {zip_path}")
|
|
||||||
except Exception as e:
|
|
||||||
logger.error(f"ZIP 打包失败: {e}")
|
|
||||||
|
|
||||||
logger.info("所有导出任务已结束。")
|
logger.info("所有导出任务已结束。")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user