From c2fedb611b2ef899e5f9504e835929197d59a114 Mon Sep 17 00:00:00 2001 From: Simon Guilbault Date: Fri, 4 Oct 2024 19:04:11 +0000 Subject: [PATCH] Fixing operator --- cloudstats/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudstats/views.py b/cloudstats/views.py index 050e26e..df5957a 100644 --- a/cloudstats/views.py +++ b/cloudstats/views.py @@ -61,7 +61,7 @@ def index(request): gpu_qty = 0 if 'gpu_qty' in all_projects[line['metric']['project_name']]: - all_projects[line['metric']['project_name']]['gpu_qty'] =+ statistics.mean(line['y']) * gpu_qty + all_projects[line['metric']['project_name']]['gpu_qty'] += statistics.mean(line['y']) * gpu_qty else: all_projects[line['metric']['project_name']]['gpu_qty'] = statistics.mean(line['y']) * gpu_qty