diff --git a/docs/source/jupyter/multiple_wrappers.ipynb b/docs/source/jupyter/multiple_wrappers.ipynb index f30eddd..c587e4b 100644 --- a/docs/source/jupyter/multiple_wrappers.ipynb +++ b/docs/source/jupyter/multiple_wrappers.ipynb @@ -158,7 +158,7 @@ "db_name = input(\"Database name: \")\n", "host = input(\"Host: \")\n", "port = int(input(\"Port [5432]: \") or 5432)\n", - "postgres_url = URL.create(\"postgresql\", user, pwd, host=host, database=db_name)" + "postgres_url = str(URL.create(\"postgresql\", user, pwd, host=host, database=db_name))" ] }, { @@ -264,7 +264,7 @@ "metadata": {}, "outputs": [], "source": [ - "with SqlAlchemySession(str(postgres_url)) as session:\n", + "with SqlAlchemySession(postgres_url) as session:\n", " wrapper = city.CityWrapper(session=session)\n", " wrapper.add(emmo_town)\n", " session.commit()"