Fakultas Ilmu Komputer UI

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


parent d8455b96
Pipeline #81607 passed with stage
in 2 minutes and 43 seconds
......@@ -7,11 +7,13 @@ from rest_framework.response import Response
from rest_framework import viewsets
from django_filters.rest_framework import DjangoFilterBackend
import datetime
@api_view(["GET"]) # pragma: no cover
def get_lembaga(request, time):
current_year = 2021
current_year = int(datetime.datetime.now().year)
if (time == "newer"):
supervisor_lembaga1 = Lembaga.objects.filter(last_insertion__range = (current_year - 5, current_year))
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