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
ppl-fasilkom-ui
2020
PPL-C
PPTI-Mobile Apps Monitoring Wabah Tuberkolosis
Neza-Backend
Commits
530c624d
Commit
530c624d
authored
May 18, 2020
by
Jonathan Christopher Jakub
Browse files
[REFACTOR] Tidy up utility functions
parent
c3445c57
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/exportables/utils.py
View file @
530c624d
...
...
@@ -28,7 +28,6 @@ def generate_initial_group_counts():
district_groups
=
{
district
:
generate_initial_counts
()
for
district
in
DISTRICTS
}
return
[
age_groups
,
sex_groups
,
district_groups
]
...
...
@@ -37,8 +36,7 @@ def map_outcome_value(outcome):
return
UNDERTERMINED
if
outcome
:
return
POSITIVE
else
:
return
NEGATIVE
return
NEGATIVE
def
map_sex_value
(
sex
):
...
...
Write
Preview
Supports
Markdown
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