Compare commits

..

No commits in common. "4b97a7cfa2fd446be36a17c41dcaaee450a7c6a8" and "dbbbdf2ce94260aa426bc7d4d4c7fb7c76cb415e" have entirely different histories.

4 changed files with 6 additions and 26 deletions

21
.gitignore vendored
View File

@ -1,20 +1,7 @@
# Program specific
/output/ # Program state
/deps/ config.py
/secrets calendar.sqlite
/private_deps/
/data/
/config/
# Python # Python
__pycache__/ __pycache__/
/build/
/dist/
*.egg-info/
.mypy_cache/
# Python, Testing
/test/secrets.py
/.coverage
/.hypothesis/
/htmlcov/

View File

@ -1 +1 @@
__version__ = '0.1.2' __version__ = '0.1.1'

View File

@ -1,7 +0,0 @@
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]

View File

@ -7,7 +7,7 @@ import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
SESSION = requests_cache.CachedSession('output/calendar') SESSION = requests_cache.CachedSession('calendar')
@functools.cache @functools.cache
def get_events_for_month(ical_link: str, today: datetime.date): def get_events_for_month(ical_link: str, today: datetime.date):