Add script to quickly update NC calendar

This commit is contained in:
Christian Wolf 2025-05-07 18:04:47 +02:00
parent b25820e6ee
commit 41a20bd03d

13
scripts/nc-cal-sync/run.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
cd "$(dirname "$0")"
if [ -d "venv" ]
then
source "venv/bin/activate"
else
echo "No virtualenv found"
exit 1
fi
python -m calendar_synchronizer -v sync --holidays ../../data/holidays.yaml --schedule ../../data/schedule.yaml "$@"