(source_id: str, source: dict, method: str, note: str)
| 20 | |
| 21 | |
| 22 | def _make_update(source_id: str, source: dict, method: str, note: str) -> dict: |
| 23 | return { |
| 24 | "source_id": source_id, |
| 25 | "name": source.get("name", source_id), |
| 26 | "url": source.get("url", ""), |
| 27 | "category": source.get("category", ""), |
| 28 | "method": method, |
| 29 | "note": note, |
| 30 | "timestamp": datetime.now().isoformat(), |
| 31 | } |
| 32 | |
| 33 | |
| 34 | # --------------------------------------------------------------------------- |