fixed issue in on_delete of gateway in API
parent
9e14d82ce8
commit
5c900e9a82
|
@ -166,7 +166,7 @@ class GatewayItem:
|
||||||
# check if this gateway is being used by any data sources
|
# check if this gateway is being used by any data sources
|
||||||
cursor.execute(" SELECT name "
|
cursor.execute(" SELECT name "
|
||||||
" FROM tbl_data_sources "
|
" FROM tbl_data_sources "
|
||||||
" WHERE gateway_id = %s ",
|
" WHERE gateway_id = %s "
|
||||||
" LIMIT 1 ",
|
" LIMIT 1 ",
|
||||||
(id_,))
|
(id_,))
|
||||||
if cursor.fetchone() is not None:
|
if cursor.fetchone() is not None:
|
||||||
|
|
Loading…
Reference in New Issue