removed unnecessory validator in tenant batch analysis report in API
parent
465f60768b
commit
1a9b73f092
|
@ -81,10 +81,6 @@ class Reporting:
|
||||||
raise falcon.HTTPError(falcon.HTTP_400, title='API.BAD_REQUEST',
|
raise falcon.HTTPError(falcon.HTTP_400, title='API.BAD_REQUEST',
|
||||||
description='API.INVALID_REPORTING_PERIOD_END_DATETIME')
|
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)
|
cnx_system_db = mysql.connector.connect(**config.myems_system_db)
|
||||||
cursor_system_db = cnx_system_db.cursor(dictionary=True)
|
cursor_system_db = cnx_system_db.cursor(dictionary=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue