(entry)
| 39 | |
| 40 | |
| 41 | def _storage_mtime(entry) -> float: |
| 42 | raw = str(getattr(entry, "modified_at", "") or "") |
| 43 | if not raw: |
| 44 | return 0.0 |
| 45 | try: |
| 46 | return float(raw) |
| 47 | except ValueError: |
| 48 | try: |
| 49 | return datetime.fromisoformat(raw.replace("Z", "+00:00")).timestamp() |
| 50 | except ValueError: |
| 51 | return 0.0 |
| 52 | |
| 53 | |
| 54 | def _build_card( |
no outgoing calls
no test coverage detected