starting ResolutionProviderTest
This commit is contained in:
15
src/GoogleAnalytics/ResolutionProvider.py
Normal file
15
src/GoogleAnalytics/ResolutionProvider.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from enum import Enum
|
||||
import linecache
|
||||
|
||||
|
||||
class Resolution(Enum):
|
||||
CITY = 1
|
||||
COUNTRY = 2
|
||||
|
||||
|
||||
class ResolutionProvider:
|
||||
|
||||
@staticmethod
|
||||
def getResolution(file):
|
||||
columns = linecache.getline(file, 7)
|
||||
return Resolution.CITY if 'City' in columns else Resolution.COUNTRY
|
||||
Reference in New Issue
Block a user