original_docstring: Get an election manifest by hash.
docstring: Get an election manifest by hash.
docstring_tokens: Get an election manifest by hash .
code: def fetch_manifest(request: Request, manifest_hash: str) -> ManifestQueryResponse:
      """Get an election manifest by hash."""
      crypto_hash = hex_to_q(manifest_hash)
      if not crypto_hash:
          raise HTTPException(
              status_code=status.HTTP_400_BAD_REQUEST, detail="manifest hash not valid"
          )
      manifest = get_manifest(crypto_hash, request.app.state.settings)
      return ManifestQueryResponse(
          manifests=[manifest],
      )
code_tokens: def fetch_manifest ( request : Request , manifest_hash : str ) -> ManifestQueryResponse : crypto_hash = hex_to_q ( manifest_hash ) if not crypto_hash : raise HTTPException ( status_code = status . HTTP_400_BAD_REQUEST , detail = "manifest hash not valid" ) manifest = get_manifest ( crypto_hash , request . app . state . settings ) return ManifestQueryResponse ( manifests = [ manifest ] , )
short_docstring: Get an election manifest by hash.
short_docstring_tokens: Get an election manifest by hash .
comment: """Get an election manifest by hash."""