Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Followup "Fixed version check for pgRouting v3 support" #128 #129

Merged
merged 3 commits into from
Oct 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ This plugin can be installed using the QGIS Plugin Manager.

pgRouting v3.x up and running to use this plugin.

Additionally, QGIS needs python-psycopg2 installed to be able to connect to the database.
Additionally, QGIS needs python3-psycopg2 installed to be able to connect to the database.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ This plugin can be installed using the QGIS Plugin Manager.

- This plugin runs only with QGIS 3.x and Python 3.
- pgRouting v3.x up and running to use this plugin.
- Additionally, QGIS needs python-psycopg2 installed to be able to connect to the database.
- Additionally, QGIS needs python3-psycopg2 installed to be able to connect to the database.

## Links

Expand Down
2 changes: 1 addition & 1 deletion pgRoutingLayer_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def getPgrVersion(con):
''' returns version of PostgreSQL database. '''
try:
cur = con.cursor()
cur.execute('SELECT pgr_version FROM pgr_version()')
cur.execute('SELECT version FROM pgr_full_version()')
row = cur.fetchone()[0]
versions = ''.join([i for i in row if i.isdigit()])
version = versions[0]
Expand Down