Compare commits
8 Commits
dbbbdf2ce9
...
4b97a7cfa2
Author | SHA1 | Date | |
---|---|---|---|
4b97a7cfa2 | |||
a2242879f7 | |||
701a070c87 | |||
76d05a51cb | |||
4e5254c464 | |||
1e50de00a2 | |||
8d2dc24739 | |||
b6b1afab40 |
21
.gitignore
vendored
21
.gitignore
vendored
|
@ -1,7 +1,20 @@
|
|||
|
||||
# Program state
|
||||
config.py
|
||||
calendar.sqlite
|
||||
# Program specific
|
||||
/output/
|
||||
/deps/
|
||||
/secrets
|
||||
/private_deps/
|
||||
/data/
|
||||
/config/
|
||||
|
||||
# Python
|
||||
__pycache__/
|
||||
/build/
|
||||
/dist/
|
||||
*.egg-info/
|
||||
.mypy_cache/
|
||||
|
||||
# Python, Testing
|
||||
/test/secrets.py
|
||||
/.coverage
|
||||
/.hypothesis/
|
||||
/htmlcov/
|
||||
|
|
|
@ -1 +1 @@
|
|||
__version__ = '0.1.1'
|
||||
__version__ = '0.1.2'
|
||||
|
|
7
kobo_wall_calendar/config.py
Normal file
7
kobo_wall_calendar/config.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
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]
|
|
@ -7,7 +7,7 @@ import logging
|
|||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
SESSION = requests_cache.CachedSession('calendar')
|
||||
SESSION = requests_cache.CachedSession('output/calendar')
|
||||
|
||||
@functools.cache
|
||||
def get_events_for_month(ical_link: str, today: datetime.date):
|
||||
|
|
Loading…
Reference in New Issue
Block a user