调整 大眼睛EM的统计

添加 羽心堂分销
This commit is contained in:
2026-05-07 17:55:42 +08:00
parent 6f38209efe
commit 8a6a0e3858
3 changed files with 107 additions and 85 deletions
+5 -1
View File
@@ -34,6 +34,7 @@ def parse_args() -> argparse.Namespace:
parser.add_argument("--table-map-file", default="", help="可选,项目到表名的映射 JSON 文件路径")
parser.add_argument("--dry-run", action="store_true", help="只输出将要更新的内容,不调用飞书写接口")
parser.add_argument("--skip-missing-tables", action="store_true", help="找不到对应月份的飞书表时跳过")
parser.add_argument("--no-notify", action="store_true", help="只写入多维表格,不推送飞书群通知")
return parser.parse_args()
@@ -61,7 +62,10 @@ def main() -> None:
)
for stat_date in iter_dates(start_date, end_date):
run_daily_sync_for_date(context, stat_date)
send_sync_notification(context, start_date, end_date)
if args.no_notify:
log_step("已跳过飞书群通知")
else:
send_sync_notification(context, start_date, end_date)
log_step("流水线完成")