(event: Dict[str, Any])
| 1184 | try: |
| 1185 | progress_callback(event) |
| 1186 | except Exception as exc: |
| 1187 | print(f" Progress callback error: {exc}") |
| 1188 | |
| 1189 | def emit_fetched(source: str, papers: List[Dict]) -> None: |
| 1190 | for paper in papers: |
| 1191 | emit({"phase": "fetched", "source": source, "paper": paper}) |
| 1192 | |
| 1193 | try: |
| 1194 | today = datetime.strptime(str(target_date or "").strip(), "%Y-%m-%d") if target_date else datetime.now() |
| 1195 | except ValueError: |
no outgoing calls
no test coverage detected