Fakultas Ilmu Komputer UI

Commit aa4074a0 authored by Ryan Karyadiputera's avatar Ryan Karyadiputera
Browse files

test3

parent 4593a59a
Pipeline #81569 passed with stage
in 2 minutes and 13 seconds
......@@ -14,9 +14,9 @@ def get_lembaga(request, time):
current_year = 2021
if (time == "newer"):
supervisor_lembaga1 = Lembaga.objects.filter(last_activity__range = (current_year - 5, current_year))
supervisor_lembaga2 = Lembaga.objects.filter(last_activity = None)
supervisor_lembaga = supervisor_lembaga1 | supervisor_lembaga2
supervisor_lembaga = Lembaga.objects.filter(last_activity__range = (current_year - 5, current_year))
# supervisor_lembaga2 = Lembaga.objects.filter(last_activity = None)
# supervisor_lembaga = supervisor_lembaga1 | supervisor_lembaga2
elif (time == "older"):
supervisor_lembaga = Lembaga.objects.filter(last_activity__range = (0, current_year - 6))
......
Markdown is supported
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