Skip to content

Commit 501a5f9

Browse files
committed
[processing] always load ExecuteSQL algorithm
1 parent c0eb997 commit 501a5f9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

python/plugins/processing/algs/qgis/QGISAlgorithmProvider.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@
185185
from .TruncateTable import TruncateTable
186186
from .Polygonize import Polygonize
187187
from .FixGeometry import FixGeometry
188+
from .ExecuteSQL import ExecuteSQL
188189

189190
pluginPath = os.path.normpath(os.path.join(
190191
os.path.split(os.path.dirname(__file__))[0], os.pardir))
@@ -254,7 +255,7 @@ def __init__(self):
254255
ShortestPathPointToPoint(), ShortestPathPointToLayer(),
255256
ShortestPathLayerToPoint(), ServiceAreaFromPoint(),
256257
ServiceAreaFromLayer(), TruncateTable(), Polygonize(),
257-
FixGeometry()
258+
FixGeometry(), ExecuteSQL()
258259
]
259260

260261
if hasMatplotlib:
@@ -271,10 +272,6 @@ def __init__(self):
271272
PolarPlot(),
272273
])
273274

274-
if Qgis.QGIS_VERSION_INT >= 21300:
275-
from .ExecuteSQL import ExecuteSQL
276-
self.alglist.extend([ExecuteSQL()])
277-
278275
self.externalAlgs = [] # to store algs added by 3rd party plugins as scripts
279276

280277
folder = os.path.join(os.path.dirname(__file__), 'scripts')

0 commit comments

Comments
 (0)