INNER CODE UNIT · Python

mutate

kadevin/ilab-conjure · codex_image/webui/app.py:846

    def mutate(metadata: dict[str, Any]) -> None:
        if archived:
            metadata["archived_at"] = str(metadata.get("archived_at") or utc_now())
        else:
            metadata.pop("archived_at", None)
    return storage.mutate_metadata(task_id, mutate)


_runtime_app: FastAPI | None = None


def __getattr__(name: str) -> Any:
    if name != "app":
        raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
    global _runtime_app
    if _runtime_app is None:
        _runtime_app = create_app(enforce_single_instance=True)
    return _runtime_app

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…