removed unnecessory validator in tenant batch analysis report in API

Merge branch 'develop'
pull/42/MERGE
13621160019@163.com 2021-05-19 15:10:38 +08:00
commit 1ed1eb77c7
1 changed files with 0 additions and 4 deletions

View File

@ -81,10 +81,6 @@ class Reporting:
raise falcon.HTTPError(falcon.HTTP_400, title='API.BAD_REQUEST',
description='API.INVALID_REPORTING_PERIOD_END_DATETIME')
if reporting_start_datetime_utc + timedelta(minutes=15) >= reporting_end_datetime_utc:
raise falcon.HTTPError(falcon.HTTP_400, title='API.BAD_REQUEST',
description='API.THE_REPORTING_PERIOD_MUST_BE_LONGER_THAN_15_MINUTES')
cnx_system_db = mysql.connector.connect(**config.myems_system_db)
cursor_system_db = cnx_system_db.cursor(dictionary=True)