Add possibility to choose monthly or daily generation

This commit is contained in:
Mickael 2019-09-04 18:38:59 +02:00
parent b4b664cb45
commit d6f2e21175
3 changed files with 7 additions and 10 deletions

View file

@ -14,6 +14,13 @@ wget -O ./site/data/tube.json https://tube.crapaud-fou.org/feeds/videos.json?sor
# chat # chat
pip3 install -r ./scripts/requirements.txt 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 python3 ./scripts/generate_chat_info.py
# global # global

View file

@ -1,5 +0,0 @@
#!/bin/sh
# chat
pip3 install -r ./scripts/requirements.txt
python3 ./scripts/generate_chat_stat_daily.py

View file

@ -1,5 +0,0 @@
#!/bin/sh
# chat
pip3 install -r ./scripts/requirements.txt
python3 ./scripts/generate_chat_stat_monthly.py