From cf88ff529a9152aecbc8d8b8044911e54cee242e Mon Sep 17 00:00:00 2001 From: Richard Hitier Date: Fri, 2 Apr 2021 19:44:41 +0200 Subject: [PATCH] Fix head data selection for project charge --- app/db_mgr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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