Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ryan Karyadiputera
ppl-berkah-back
Commits
95c02e03
Commit
95c02e03
authored
Jun 06, 2021
by
Ryan Karyadiputera
Browse files
test3
parent
bddc9ca2
Pipeline
#81611
passed with stage
in 3 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lembaga/views.py
View file @
95c02e03
...
...
@@ -9,11 +9,11 @@ from django_filters.rest_framework import DjangoFilterBackend
import
datetime
@
api_view
([
"GET"
])
# pragma: no cover
@
permission_classes
([
AllowAny
])
def
get_lembaga
(
request
,
time
):
current_year
=
int
(
datetime
.
datetime
.
now
().
year
)
current_year
=
datetime
.
datetime
.
now
().
year
if
(
time
==
"newer"
):
supervisor_lembaga1
=
Lembaga
.
objects
.
filter
(
last_insertion__range
=
(
current_year
-
5
,
current_year
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment