From 5c900e9a82f6f10d95ab0d5a3c93d1bd0f949be5 Mon Sep 17 00:00:00 2001 From: "13621160019@163.com" <13621160019@163.com> Date: Wed, 10 Nov 2021 12:25:05 +0800 Subject: [PATCH] fixed issue in on_delete of gateway in API --- myems-api/core/gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/myems-api/core/gateway.py b/myems-api/core/gateway.py index 9257bd2c..0947643b 100644 --- a/myems-api/core/gateway.py +++ b/myems-api/core/gateway.py @@ -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: