(source_id: str, source: dict, check_type: str, note: str)
| 2738 | # --------------------------------------------------------------------------- |
| 2739 | |
| 2740 | def _make_update(source_id: str, source: dict, check_type: str, note: str) -> dict: |
| 2741 | return { |
| 2742 | "source_id": source_id, "name": source["name"], "url": source["url"], |
| 2743 | "category": source["category"], "check_type": check_type, |
| 2744 | "detected_at": datetime.now().isoformat(), "note": note, |
| 2745 | } |
| 2746 | |
| 2747 | |
| 2748 | # --------------------------------------------------------------------------- |