diff --git a/app/db_mgr.py b/app/db_mgr.py index 43b23ef..51e1c1d 100644 --- a/app/db_mgr.py +++ b/app/db_mgr.py @@ -85,7 +85,7 @@ def charges_by_project_stacked(project_id, category="service"): . sem_n, value_n0, value_n1, ....., value_nn, """ - if category == 'service': + if category == 'capacity': category_table = 'service' sql_req = """ select c.charge_rate @@ -93,7 +93,7 @@ def charges_by_project_stacked(project_id, category="service"): charge c on c1.id = c.capacity_id and project_id = {} and period_id={} order by c1.id """ - elif category == 'capacity': + elif category == 'service': category_table = 'capacity' sql_req = """ select c.charge_rate -- libgit2 0.21.2