Fakultas Ilmu Komputer UI

Commit f77573c6 authored by Mika dabelza abi's avatar Mika dabelza abi
Browse files

[GREEN] fixing tests caused by debugging lines

parent 34c3c465
......@@ -26,9 +26,11 @@ class DaftarKatalog(TemplateView):
def get(self, request, *args, **kwargs):
context = self.get_context_data(**kwargs)
context["kategori_list"] = Category.objects.all()
print(Materi.objects.get(pk=1).status[0])
context["materi_list"] = Materi.objects.all().filter(status = "(\"APPROVE\", \"Diterima\")")
try:
context["materi_list"] = Materi.objects.all().filter(status = "(\"APPROVE\", \"Diterima\")")
except:
context["materi_list"] = None
getSearch = request.GET.get('search')
if getSearch:
list = Materi.objects.filter(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment