Skip to content
Permalink
Browse files

Autopep8

  • Loading branch information
anitagraser committed May 29, 2018
1 parent f314653 commit 1ed5bb54ce70c4c1f3b09ea02a2921aafe5a7d52
Showing with 1 addition and 2 deletions.
  1. +1 −2 python/plugins/processing/algs/qgis/PostGISExecuteAndLoadSQL.py
@@ -85,7 +85,7 @@ def processAlgorithm(self, parameters, context, feedback):
uri = postgis.uri_from_name(connection)
sql = self.parameterAsString(parameters, self.SQL, context)
sql = sql.replace('\n', ' ')
uri.setDataSource("", "("+sql+")", "geom", "", "id")
uri.setDataSource("", "(" + sql + ")", "geom", "", "id")

vlayer = QgsVectorLayer(uri.uri(), "layername", "postgres")

@@ -101,4 +101,3 @@ def processAlgorithm(self, parameters, context, feedback):
self.OUTPUT))

return {self.OUTPUT: vlayer.id()}

0 comments on commit 1ed5bb5

Please sign in to comment.
You can’t perform that action at this time.