From 8c754d806c174cecc6e4a12aaca02b767f915981 Mon Sep 17 00:00:00 2001 From: Ludwig Schneider Date: Thu, 14 Dec 2023 16:19:24 -0600 Subject: [PATCH] use api host --- src/cript/api/data_schema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cript/api/data_schema.py b/src/cript/api/data_schema.py index 1eaf24a44..2133b99be 100644 --- a/src/cript/api/data_schema.py +++ b/src/cript/api/data_schema.py @@ -69,8 +69,8 @@ def __init__(self, host: str): -------- ### Create a stand alone DataSchema instance. >>> import cript - >>> data_schema = cript.api.DataSchema("https://api.criptapp.org/api/v1/") - + >>> with cript.API(host="https://api.criptapp.org/") as api: + ... data_schema = cript.api.DataSchema(api.host) """ self._db_schema = self._get_db_schema(host)