def get_calendar(promo, group): output = '{}/{}.ics'.format(CALDIR, group) cal = chronos.chronos(promo, group, NUMWEEKS) print("ecriture: " + output) with open('{}'.format(output), 'w') as out: out.writelines(cal)
def get_calendar(promo, group): output = '{}/{}.ics'.format(CALDIR, group) cal = chronos.chronos(promo, group) with open('{}'.format(output), 'w') as out: out.writelines(cal)