Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
2020
PPL-C
PPTI-Mobile Apps Monitoring Wabah Tuberkolosis
Neza-Backend
Commits
545a8ead
Commit
545a8ead
authored
May 27, 2020
by
Dave Nathanael
Browse files
[REFACTOR] Reformat code with auto-formatter
parent
3adac60b
Pipeline
#47927
passed with stages
in 13 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/exportables/views.py
View file @
545a8ead
...
...
@@ -105,8 +105,12 @@ class ExportInvestigationCaseView(APIView):
if
query_district
is
not
None
:
cases
=
cases
.
filter
(
case_subject__district
=
query_district
)
data
=
list
(
cases
.
prefetch_related
(
"case_subject"
,
"reference_case"
,
"author"
).
values
(
*
INVESTIGATION_CASE_RENDERER_FIELDS
))
data
=
list
(
cases
.
prefetch_related
(
"case_subject"
,
"reference_case"
,
"author"
).
values
(
*
INVESTIGATION_CASE_RENDERER_FIELDS
))
headers
=
{
"Content-Disposition"
:
'attachment; filename="cases.csv"'
}
return
Response
(
data
,
headers
=
headers
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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