From 0d68f990d06ff7d54369b4684583db8852c3d6c2 Mon Sep 17 00:00:00 2001 From: cayetanobv Date: Tue, 14 Apr 2020 03:04:46 +0200 Subject: [PATCH 1/3] fixed pgr_version check for v3 --- pgRoutingLayer_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgRoutingLayer_utils.py b/pgRoutingLayer_utils.py index f2b8516..2427919 100644 --- a/pgRoutingLayer_utils.py +++ b/pgRoutingLayer_utils.py @@ -129,7 +129,7 @@ def getPgrVersion(con): ''' returns version of PostgreSQL database. ''' try: cur = con.cursor() - cur.execute('SELECT version FROM pgr_version()') + cur.execute('SELECT pgr_version FROM pgr_version()') row = cur.fetchone()[0] versions = ''.join([i for i in row if i.isdigit()]) version = versions[0] From bc56010512f4bfae28ae6a0866982cfee3387d01 Mon Sep 17 00:00:00 2001 From: cayetanobv Date: Tue, 14 Apr 2020 03:08:03 +0200 Subject: [PATCH 2/3] updated Readme for v3 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 514e1aa..ed8d423 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,6 @@ This plugin can be installed using the QGIS Plugin Manager. ### Dependencies -pgRouting v2.x up and running to use this plugin. +pgRouting v3.x up and running to use this plugin. Additionally, QGIS needs python-psycopg2 installed to be able to connect to the database. From 26b1bf8f50b9628a8ffa7fff04195400f08424aa Mon Sep 17 00:00:00 2001 From: cayetanobv Date: Tue, 14 Apr 2020 03:09:25 +0200 Subject: [PATCH 3/3] updated docs for v3 --- docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index 1122b3a..cf7ca2d 100644 --- a/docs/index.md +++ b/docs/index.md @@ -37,7 +37,7 @@ This plugin can be installed using the QGIS Plugin Manager. ### Dependencies - This plugin runs only with QGIS 3.x and Python 3. -- pgRouting v2.x up and running to use this plugin. +- pgRouting v3.x up and running to use this plugin. - Additionally, QGIS needs python-psycopg2 installed to be able to connect to the database. ## Links