added is_virtual to point in myems-bacnet and myems-modbus-tcp
parent
bb875521ef
commit
2cefdcb705
|
@ -154,7 +154,7 @@ def process(logger, ):
|
||||||
try:
|
try:
|
||||||
query = (" SELECT id, name, object_type, is_trend, ratio, address "
|
query = (" SELECT id, name, object_type, is_trend, ratio, address "
|
||||||
" FROM tbl_points "
|
" FROM tbl_points "
|
||||||
" WHERE data_source_id = %s "
|
" WHERE data_source_id = %s AND is_virtual = FALSE "
|
||||||
" ORDER BY id ")
|
" ORDER BY id ")
|
||||||
cursor_system_db.execute(query, (data_source_id,))
|
cursor_system_db.execute(query, (data_source_id,))
|
||||||
rows_points = cursor_system_db.fetchall()
|
rows_points = cursor_system_db.fetchall()
|
||||||
|
|
|
@ -56,7 +56,7 @@ def process(logger, data_source_id, host, port):
|
||||||
try:
|
try:
|
||||||
query = (" SELECT id, name, object_type, is_trend, ratio, address "
|
query = (" SELECT id, name, object_type, is_trend, ratio, address "
|
||||||
" FROM tbl_points "
|
" FROM tbl_points "
|
||||||
" WHERE data_source_id = %s "
|
" WHERE data_source_id = %s AND is_virtual = FALSE "
|
||||||
" ORDER BY id ")
|
" ORDER BY id ")
|
||||||
cursor_system_db.execute(query, (data_source_id, ))
|
cursor_system_db.execute(query, (data_source_id, ))
|
||||||
rows_point = cursor_system_db.fetchall()
|
rows_point = cursor_system_db.fetchall()
|
||||||
|
|
Loading…
Reference in New Issue