updated metertracking report by adding point type condition to meter point query string
Merge branch 'develop'pull/43/MERGE
commit
5f31c92de8
|
@ -150,8 +150,9 @@ class Reporting:
|
|||
################################################################################################################
|
||||
for meter_id in meter_dict:
|
||||
cursor_system_db.execute(" SELECT point_id "
|
||||
" FROM tbl_meters_points "
|
||||
" WHERE meter_id = %s ", (meter_id, ))
|
||||
" FROM tbl_meters_points mp, tbl_points p"
|
||||
" WHERE p.id = mp.point_id AND p.object_type = 'ENERGY_VALUE' "
|
||||
" AND meter_id = %s ", (meter_id, ))
|
||||
|
||||
rows_points_id = cursor_system_db.fetchall()
|
||||
|
||||
|
|
Loading…
Reference in New Issue