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
68030e72
Commit
68030e72
authored
May 18, 2020
by
Jonathan Christopher Jakub
Browse files
[REFACTOR] Fix typo
parent
530c624d
Pipeline
#47435
passed with stages
in 3 minutes and 13 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
apps/exportables/constants.py
View file @
68030e72
...
...
@@ -29,7 +29,7 @@ MALE = "male"
POSITIVE
=
"positive"
NEGATIVE
=
"negative"
UNDE
R
TERMINED
=
"undetermined"
UNDETERMINED
=
"undetermined"
# Total
...
...
apps/exportables/utils.py
View file @
68030e72
...
...
@@ -6,7 +6,7 @@ from apps.exportables.constants import (
NEGATIVE
,
POSITIVE
,
TOTAL
,
UNDE
R
TERMINED
UNDETERMINED
)
...
...
@@ -14,7 +14,7 @@ def generate_initial_counts():
return
{
POSITIVE
:
0
,
NEGATIVE
:
0
,
UNDE
R
TERMINED
:
0
,
UNDETERMINED
:
0
,
TOTAL
:
0
}
...
...
@@ -33,7 +33,7 @@ def generate_initial_group_counts():
def
map_outcome_value
(
outcome
):
if
outcome
is
None
:
return
UNDE
R
TERMINED
return
UNDETERMINED
if
outcome
:
return
POSITIVE
return
NEGATIVE
...
...
apps/exportables/views.py
View file @
68030e72
...
...
@@ -17,7 +17,7 @@ from apps.exportables.constants import (
POSITIVE
,
SEX
,
TOTAL
,
UNDE
R
TERMINED
UNDETERMINED
)
from
apps.exportables.utils
import
(
generate_initial_counts
,
...
...
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