From 07e350899d279a5e06dfc39ea15f514f346e732d Mon Sep 17 00:00:00 2001
From: Chris Li <c58li@uwaterloo.ca>
Date: Fri, 7 Apr 2023 14:28:36 -0400
Subject: [PATCH] Modify categories list in billPriceSum

---
 core/api/bill.py         |  4 ----
 core/api/billPriceSum.py | 23 ++++++++++++-----------
 2 files changed, 12 insertions(+), 15 deletions(-)

diff --git a/core/api/bill.py b/core/api/bill.py
index c4b7318..d4af8f6 100644
--- a/core/api/bill.py
+++ b/core/api/bill.py
@@ -8,10 +8,6 @@ from rest_framework import permissions, authentication
 class BillListCreate(mixins.ListModelMixin, mixins.CreateModelMixin, generics.GenericAPIView):
     queryset = Bill.objects.all()
     serializer_class = BillSerializer
-    # authentication_classes = [
-    #     authentication.SessionAuthentication,
-    #     authentication.TokenAuthentication
-    # ]
     permission_classes = (permissions.IsAuthenticated,)
 
     def get(self, request, *args, **kwargs):
diff --git a/core/api/billPriceSum.py b/core/api/billPriceSum.py
index 388c129..e56e073 100644
--- a/core/api/billPriceSum.py
+++ b/core/api/billPriceSum.py
@@ -15,17 +15,18 @@ class BillSumPriceListView(generics.ListAPIView):
 
         categorieModel = {
             1: "Food",
-            2: "Groceries",
-            3: "Transportation",
-            4: "clothing",
-            5: "Entertainment",
-            6: "Bill",
-            7: "Sports",
-            8: "Electronics",
-            9: "Travel",
-            10: "House & Car",
-            11: "Salary",
-            12: "Others"
+            2: "Transportation",
+            3: "Shopping",
+            4: "Entertainment",
+            5: "Housing",
+            6: "Utilities",
+            7: "Other",
+            8: "Salary",
+            9: "Interest",
+            10: "Investment",
+            11: "Child benefit",
+            12: "Pension",
+            13: "Income",
         }
         queryset = self.filter_queryset(self.get_queryset())
         user = None
-- 
GitLab