()
| 126 | |
| 127 | |
| 128 | def _load_existing_entries() -> list[dict]: |
| 129 | if not OUT_PATH.exists(): |
| 130 | return [] |
| 131 | try: |
| 132 | with open(OUT_PATH, encoding="utf-8") as f: |
| 133 | data = json.load(f) |
| 134 | return data.get("entries", []) |
| 135 | except Exception: |
| 136 | return [] |
| 137 | |
| 138 | |
| 139 | def _diff_entries(old: list[dict], new: list[dict]) -> dict: |