fixed issue in on_delete of gateway in API

pull/80/head
13621160019@163.com 2021-11-10 12:25:05 +08:00
parent 9e14d82ce8
commit 5c900e9a82
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ class GatewayItem:
# check if this gateway is being used by any data sources
cursor.execute(" SELECT name "
" FROM tbl_data_sources "
" WHERE gateway_id = %s ",
" WHERE gateway_id = %s "
" LIMIT 1 ",
(id_,))
if cursor.fetchone() is not None: