Add possibility to choose monthly or daily generation
This commit is contained in:
parent
b4b664cb45
commit
d6f2e21175
3 changed files with 7 additions and 10 deletions
|
@ -14,6 +14,13 @@ wget -O ./site/data/tube.json https://tube.crapaud-fou.org/feeds/videos.json?sor
|
|||
|
||||
# chat
|
||||
pip3 install -r ./scripts/requirements.txt
|
||||
echo $ROCKETCHAT_GENERATION
|
||||
if [ $ROCKETCHAT_GENERATION = "MONTHLY" ] ; then
|
||||
python3 ./scripts/generate_chat_stat_monthly.py
|
||||
elif [ $ROCKETCHAT_GENERATION = "DAILY" ]; then
|
||||
python3 ./scripts/generate_chat_stat_daily.py
|
||||
fi
|
||||
|
||||
python3 ./scripts/generate_chat_info.py
|
||||
|
||||
# global
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# chat
|
||||
pip3 install -r ./scripts/requirements.txt
|
||||
python3 ./scripts/generate_chat_stat_daily.py
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# chat
|
||||
pip3 install -r ./scripts/requirements.txt
|
||||
python3 ./scripts/generate_chat_stat_monthly.py
|
Loading…
Reference in a new issue