Files
HowBadIsMyBatch/src/CountryCountsByBatchcodeTablesMerger.py
frankknoll 2788882ec1 refactoring
2023-10-03 22:51:33 +02:00

15 lines
576 B
Python

import glob
from CountryCountsByClickedBatchcodeProvider import CountryCountsByClickedBatchcodeProvider
from TablesHelper import TablesHelper
class CountryCountsByBatchcodeTablesMerger:
@staticmethod
def getCountryCountsByClickedBatchcodeTable():
return TablesHelper.concatTables_groupByIndex_sum(CountryCountsByBatchcodeTablesMerger._getTables())
@staticmethod
def _getTables():
files = glob.glob(r'data/GoogleAnalytics/*')
return [CountryCountsByClickedBatchcodeProvider.getCountryCountsByClickedBatchcode(file) for file in files]