Skip to content

Commit 92c45b4

Browse files
authored
Update and rename locationFactory.py to Singleton.py
1 parent feff073 commit 92c45b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""app.services.location.locationFactory.py"""
1+
"""app.services.location.Singleton.py"""
22
import csv
33
import logging
44
import os
@@ -18,9 +18,9 @@
1818
from ...utils import httputils
1919
from . import LocationService
2020

21-
LOGGER = logging.getLogger("services.location.locationFactory")
21+
LOGGER = logging.getLogger("services.location.Singleton")
2222

23-
class LocationServiceFactory(LocationService):
23+
class LocationServices(LocationService):
2424
async def get_all(self):
2525
# Get the locations.
2626
locations = await get_locations()
@@ -323,7 +323,7 @@ async def get_category(category):
323323

324324
@cached(cache=TTLCache(maxsize=1, ttl=1800))
325325
async def get_locations():
326-
thisTemp = LocationServiceFactory()
326+
thisTemp = LocationServices()
327327
if something == "nyt":
328328
return thisTemp.createNYT()
329329
elif something == "csbs":

0 commit comments

Comments
 (0)