thejagstudio commited on
Commit
6946d58
1 Parent(s): 9f9fb1f

Update main/views.py

Browse files
Files changed (1) hide show
  1. main/views.py +1 -1
main/views.py CHANGED
@@ -12,7 +12,7 @@ def getProductData(request, category):
12
  category = category.replace("-", " ").lower()
13
  obj = Products.objects.filter(category=category).all()
14
  data = {"data": []}
15
- for i in obj:
16
  temp = {}
17
  temp["name"] = i.name
18
  temp["score"] = i.score
 
12
  category = category.replace("-", " ").lower()
13
  obj = Products.objects.filter(category=category).all()
14
  data = {"data": []}
15
+ for i in obj[:100]:
16
  temp = {}
17
  temp["name"] = i.name
18
  temp["score"] = i.score