added filter to only get due until today

This commit is contained in:
Stuce 2025-12-12 11:32:28 +01:00
parent 01171acf35
commit 4d2732da54
3 changed files with 12 additions and 2 deletions

3
.gitignore vendored
View file

@ -1,3 +1,4 @@
__pycache__ __pycache__
result result
config.ini config_test.ini
password

9
config.ini Normal file
View file

@ -0,0 +1,9 @@
[calDAV]
address = localhost:5232
username = username
password = password
; password has priority, passwordFile used as fallback
passwordFile = /path/to/password
[server]
port = 8000

View file

@ -14,7 +14,7 @@ def parseConfig() -> tuple[str, str, str, str]:
return file.readline().strip() return file.readline().strip()
config = configparser.ConfigParser() config = configparser.ConfigParser()
# config.read("/etc/calDAVtoCSV/config.ini") # TODO: option to call the one in test instead or specify one
config.read("/etc/calDAVtoCSV/config.ini") config.read("/etc/calDAVtoCSV/config.ini")
calDavAddress = config.get("calDAV", "address") calDavAddress = config.get("calDAV", "address")