From 986ceb27b132a9061d64dc37cdb1c33f51e8319a Mon Sep 17 00:00:00 2001
From: xinjiel2 <xinjielan1@gmail.com>
Date: Mon, 13 May 2019 22:26:51 +1000
Subject: [PATCH] criminal percentage

---
 web_app_django/tweet/views.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/web_app_django/tweet/views.py b/web_app_django/tweet/views.py
index 49764a0..26af456 100644
--- a/web_app_django/tweet/views.py
+++ b/web_app_django/tweet/views.py
@@ -69,7 +69,7 @@ def index(request):
                 #print(doc.value[element])
                 countDomesitc += doc.value[element]
         countDomesitc += len(countId)
-        countDomestic = (countDomestic/7410000)*100
+        countDomesitc = (countDomesitc/7410000)*100
         print(countDomesitc)
         
         context['NswCount'] = countDomesitc
@@ -93,8 +93,9 @@ def index(request):
                             continue
                         else:
                             count += properties[element]
+            
+            count = (count/5740000)*100
             print(count)
-            cout = (cout/5740000)*100
             context['VicCount'] = count
         docsSa = SERVER['aurin_sa']
         countForSa = 0
-- 
GitLab