fixed issue of carbon_dioxide_emmision_factor in aggregation serivce

pull/119/head
13621160019@163.com 2022-01-26 17:37:06 +08:00
parent 281575a423
commit f00908f0b1
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ def get_energy_category_factor(energy_category_id, start_datetime_utc, end_datet
cursor = cnx.cursor()
query_factors = (" SELECT kgco2e "
" FROM tbl_energy_categories "
" WHERE energy_category_id = %s ")
" WHERE id = %s ")
cursor.execute(query_factors, (energy_category_id,))
rows_factor = cursor.fetchone()
except Exception as e: