<reponame>kennethgoodman/lichess_downloader_api<filename>data_manager/manager.py<gh_stars>0
from data_manager.read_data_util import ReadManager
from data_manager.download_data_utils import inc_download_and_unzip


class Manager(ReadManager):
    def __init__(self, year: int, month: int):
        super().__init__(year, month)
        if not self.has_data():
            gen = inc_download_and_unzip(year, month)
            for _ in gen:
                pass

from data_manager.read_data_util import ReadManager
from data_manager.download_data_utils import inc_download_and_unzip


class Manager(ReadManager):
    def __init__(self, year: int, month: int):
        super().__init__(year, month)
        if not self.has_data():
            gen = inc_download_and_unzip(year, month)
            for _ in gen:
                pass