Skip to content

Commit 6f3d4a9

Browse files
committed
fix(tools_qgis): fix previous commit
1 parent 38ac24c commit 6f3d4a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools_qgis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,9 +1555,9 @@ def check_query_layer(layer):
15551555
# TODO:: Find differences between PostgreSQL and query layers, and replace this if condition.
15561556
table_uri = layer.dataProvider().dataSourceUri()
15571557
if layer is None \
1558-
or getattr(layer, 'isSqlQuery', False) \
1558+
or type(layer) is not QgsVectorLayer \
15591559
or 'SELECT row_number() over ()' in str(table_uri) \
1560-
or type(layer) is not QgsVectorLayer:
1560+
or layer.isSqlQuery():
15611561
return False
15621562
return True
15631563
except Exception:

0 commit comments

Comments
 (0)