kobo-wall-calendar/kobo_wall_calendar/config.py

8 lines
210 B
Python

from secret_loader import SecretLoader
SECRETS = SecretLoader()
def get_ical_links() -> list[str]:
secrets = SECRETS.load_or_fail('ical_links').strip().split('\n')
return [s.strip() for s in secrets]