added limit 1 to number of ENERGY_VALUE points of meter

pull/126/MERGE
13621160019@163.com 2022-02-23 14:42:37 +08:00
parent 2f4831bbd8
commit 004bfeff68
1 changed files with 1 additions and 1 deletions

View File

@ -942,7 +942,7 @@ class MeterPointCollection:
if rows_points is not None and len(rows_points) > 0: if rows_points is not None and len(rows_points) > 0:
cursor.close() cursor.close()
cnx.disconnect() cnx.disconnect()
raise falcon.HTTPError(falcon.HTTP_404, title='API.BAD_REQUEST', raise falcon.HTTPError(falcon.HTTP_400, title='API.ERROR',
description='API.METER_CANNOT_HAVE_MORE_THAN_ONE_ENERGY_VALUE_POINTS') description='API.METER_CANNOT_HAVE_MORE_THAN_ONE_ENERGY_VALUE_POINTS')
query = (" SELECT id " query = (" SELECT id "