Skip to content

Commit

Permalink
move url-to-str to url creation (simphony#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
razekmh committed Jul 6, 2022
1 parent d0f2d42 commit ea959c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/jupyter/multiple_wrappers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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))"
]
},
{
Expand Down Expand Up @@ -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()"
Expand Down

0 comments on commit ea959c1

Please sign in to comment.