commit code
All checks were successful
Gitea Actions Demo / deploy (push) Successful in 13s

This commit is contained in:
2025-12-29 19:57:58 +08:00
parent 7a2f9fd005
commit 80978ff304
4 changed files with 14 additions and 14 deletions

View File

@ -104,7 +104,7 @@ def generate_daily_article() -> List[Dict[str, Any]]:
if __name__ == "__main__":
content = generate_daily_article()
article = content["阶段4_今日文章"]["文章正文"]
print(article)
# if __name__ == "__main__":
# content = generate_daily_article()
# article = content["阶段4_今日文章"]["文章正文"]
# print(article)

View File

@ -185,10 +185,10 @@ def orchestrate_for_first_topic() -> Dict[str, Any]:
return {"topic": top, "bits": bits, "script": script}
if __name__ == "__main__":
# quick sanity check when run as script (will call API if keys present)
try:
out = orchestrate_for_first_topic()
print(json.dumps(out, ensure_ascii=False, indent=2))
except Exception as e:
print(f"Error during orchestration: {e}")
# if __name__ == "__main__":
# # quick sanity check when run as script (will call API if keys present)
# try:
# out = orchestrate_for_first_topic()
# print(json.dumps(out, ensure_ascii=False, indent=2))
# except Exception as e:
# print(f"Error during orchestration: {e}")