kobo-wall-calendar/kobo_wall_calendar/config.py

8 lines
210 B
Python
Raw Normal View History

2024-07-17 14:12:38 +00:00
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]