(tags: dict[str, str])
| 106 | |
| 107 | |
| 108 | def delete_after(tags: dict[str, str]) -> datetime.datetime | None: |
| 109 | unix = tags.get("scratch-delete-after") |
| 110 | if not unix: |
| 111 | return None |
| 112 | unix = int(float(unix)) |
| 113 | return datetime.datetime.fromtimestamp(unix) |
| 114 | |
| 115 | |
| 116 | def instance_host(instance: Instance, user: str | None = None) -> str: |