Fakultas Ilmu Komputer UI

Commit 1b31a932 authored by Ryan Karyadiputera's avatar Ryan Karyadiputera
Browse files

test3

parent d7979dd4
Pipeline #81564 passed with stage
in 2 minutes and 25 seconds
......@@ -13,7 +13,7 @@ import datetime
@api_view(["GET"]) # pragma: no cover
@permission_classes([AllowAny])
def get_lembaga(request, time):
current_year = datetime.datetime.now().year
current_year = int(datetime.datetime.now().year)
if (time == "newer"):
supervisor_lembaga1 = Lembaga.objects.filter(last_activity__range = (current_year - 5, current_year))
......
......@@ -29,7 +29,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = env('DJANGO_SECRET_KEY')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
DEBUG = True
HOST_URL = os.getenv('HOST_URL')
......
......@@ -31,7 +31,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = os.getenv('DJANGO_SECRET_KEY', "s3cr3t_k3y_c4nn0t_h4ck3d_by_l33t_1337")
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
DEBUG = True
# HOST_URL = os.getenv('HOST_URL')
......
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