Skip to content

Commit 1a2cc52

Browse files
committed
Added comments
ditto
1 parent 7667a9d commit 1a2cc52

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

app/location/__init__.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,32 @@ def __init__(
2929

3030
@property
3131
def confirmed(self):
32+
"""
33+
Gets the latest amount of total confirmed cases of this location.
34+
35+
:returns: The latest amount of total confirmed cases.
36+
:rtype: int
37+
"""
3238
return self._confirmed
3339

3440
@property
3541
def deaths(self):
42+
"""
43+
Gets the latest amount of total death cases of this location.
44+
45+
:returns: The latest amount of total death cases.
46+
:rtype: int
47+
"""
3648
return self._deaths
3749

3850
@property
3951
def recovered(self):
52+
"""
53+
Gets the latest amount of total recovered cases of this location.
54+
55+
:returns: The latest amount of total recovered cases.
56+
:rtype: int
57+
"""
4058
return self._recovered
4159

4260
@property

app/location/csbs.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,22 @@ def __init__(self, id, state, county, coordinates, last_updated, confirmed, deat
2727

2828
@property
2929
def state(self):
30+
"""
31+
Gets the name of the state.
32+
33+
:returns: The name of the state.
34+
:rtype: str
35+
"""
3036
return self._state
3137

3238
@property
3339
def county(self):
40+
"""
41+
Gets the name of the county.
42+
43+
:returns: The name of the county.
44+
:rtype: str
45+
"""
3446
return self._county
3547

3648
def serialize(self, timelines=False): # pylint: disable=arguments-differ,unused-argument

0 commit comments

Comments
 (0)