forked from tsc-vfl/hugo-page
23 lines
555 B
Python
23 lines
555 B
Python
|
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')
|
||
|
|