putzen.sh: reduce frequency and number of people
This commit is contained in:
parent
f4937c40e2
commit
d18f93e369
21
putzen.sh
21
putzen.sh
@ -1,8 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
# Week number since 1970 modulo 4
|
||||
week=$(expr $(date +%s) / 604800 % 4)
|
||||
# Week number since 1970 modulo 8
|
||||
week=$(expr $(date +%s) / 604800 % 8)
|
||||
else
|
||||
week=$1
|
||||
fi
|
||||
@ -21,22 +21,21 @@ case $week in
|
||||
python create_task.py "$task_title" 2 "in 7 days" \
|
||||
--pad-template-url "https://pad.leinelab.org/leinelab-putzen-only-weekly"
|
||||
;;
|
||||
1)
|
||||
/usr/bin/docker exec lab-signal-bot-lab-bot-1 \
|
||||
python create_task.py "$task_title" 4 "in 7 days" \
|
||||
--pad-template-url "https://pad.leinelab.org/leinelab-putzen-fortnightly"
|
||||
;;
|
||||
2)
|
||||
/usr/bin/docker exec lab-signal-bot-lab-bot-1 \
|
||||
python create_task.py "$task_title" 4 "in 7 days" \
|
||||
python create_task.py "$task_title" 3 "in 7 days" \
|
||||
--pad-template-url "https://pad.leinelab.org/leinelab-putzen-fortnightly"
|
||||
;;
|
||||
4)
|
||||
/usr/bin/docker exec lab-signal-bot-lab-bot-1 \
|
||||
python create_task.py "$task_title" 3 "in 7 days" \
|
||||
--pad-template-url "https://pad.leinelab.org/leinelab-putzen-monthly"
|
||||
;;
|
||||
3)
|
||||
6)
|
||||
/usr/bin/docker exec lab-signal-bot-lab-bot-1 \
|
||||
python create_task.py "$task_title" 4 "in 7 days" \
|
||||
python create_task.py "$task_title" 3 "in 7 days" \
|
||||
--pad-template-url "https://pad.leinelab.org/leinelab-putzen-fortnightly"
|
||||
;;
|
||||
*)
|
||||
echo "Invalid choice"
|
||||
;;
|
||||
esac
|
||||
|
Loading…
x
Reference in New Issue
Block a user