Compare commits

...

8 Commits

Author SHA1 Message Date
4b97a7cfa2 🤖 Bumped version to 0.1.2
This commit was automatically generated by a script: https://gitfub.space/Jmaa/python-omni
2024-07-17 16:59:49 +02:00
a2242879f7 Cache in output 2024-07-17 16:59:18 +02:00
701a070c87 🤖 Repository layout updated to latest version
This commit was automatically generated by a script: https://gitfub.space/Jmaa/python-omni
2024-07-17 16:51:47 +02:00
76d05a51cb 🤖 Repository layout updated to latest version
This commit was automatically generated by a script: https://gitfub.space/Jmaa/python-omni
2024-07-17 16:13:20 +02:00
4e5254c464 🤖 Repository layout updated to latest version
This commit was automatically generated by a script: https://gitfub.space/Jmaa/python-omni
2024-07-17 16:12:52 +02:00
1e50de00a2 Remove old .gitignore 2024-07-17 16:12:48 +02:00
8d2dc24739 🤖 Repository layout updated to latest version
This commit was automatically generated by a script: https://gitfub.space/Jmaa/python-omni
2024-07-17 16:12:02 +02:00
b6b1afab40 🤖 Repository layout updated to latest version
This commit was automatically generated by a script: https://gitfub.space/Jmaa/python-omni
2024-07-17 16:11:18 +02:00
4 changed files with 26 additions and 6 deletions

21
.gitignore vendored
View File

@ -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/

View File

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

View 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]

View File

@ -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):