23 lines
555 B
Python
Raw Normal View History

2025-01-13 15:58:45 +01:00
import logging, json
from . import login
_l = logging.getLogger(__name__)
def buildSubparser(subparser):
subparser.add_argument('--schedule', default='../../data/schedule.json')
subparser.add_argument('--holidays', default='../../data/holidays.json')
def run(args):
_l.info('Loading data from hard disc')
loginData = login.loadLoginData()
with open(args.schedule, 'r') as f:
schedule = json.load(f)
with open(args.holidays, 'r') as f:
holidays = json.load(f)
_l.info('Data was read from hard disc')