Skip to content

Commit ae98131

Browse files
committed
refactor: apply the second aggregate pattern
1 parent fdbc003 commit ae98131

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

app/location/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,7 @@
33
from ..utils import countries
44
from ..utils.populations import country_population
55

6-
class Locations:
7-
def __init__(self,locations: list[Location]):
8-
self.locations = locations
96

10-
def add_service(self,location):
11-
self.locations.append(location)
12-
13-
def get_location(self):
14-
return locations
157

168
# pylint: disable=redefined-builtin,invalid-name
179
class Location: # pylint: disable=too-many-instance-attributes

0 commit comments

Comments
 (0)