added is_virtual to point in myems-bacnet and myems-modbus-tcp

pull/42/head
13621160019@163.com 2021-05-07 09:01:56 +08:00
parent bb875521ef
commit 2cefdcb705
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ def process(logger, ):
try:
query = (" SELECT id, name, object_type, is_trend, ratio, address "
" FROM tbl_points "
" WHERE data_source_id = %s "
" WHERE data_source_id = %s AND is_virtual = FALSE "
" ORDER BY id ")
cursor_system_db.execute(query, (data_source_id,))
rows_points = cursor_system_db.fetchall()

View File

@ -56,7 +56,7 @@ def process(logger, data_source_id, host, port):
try:
query = (" SELECT id, name, object_type, is_trend, ratio, address "
" FROM tbl_points "
" WHERE data_source_id = %s "
" WHERE data_source_id = %s AND is_virtual = FALSE "
" ORDER BY id ")
cursor_system_db.execute(query, (data_source_id, ))
rows_point = cursor_system_db.fetchall()