switch data source to id for chat stats

This commit is contained in:
mose 2019-09-09 12:11:00 +08:00
parent d1153e68f1
commit 4ffe1e1090

View file

@ -13,17 +13,10 @@ wget -O ./site/data/rencontres.json https://wiki.crapaud-fou.org/rencontres.php
wget -O ./site/data/tube.json "https://tube.crapaud-fou.org/feeds/videos.json?sort=-publishedAt&filter=local"
# chat
pip3 install -r ./scripts/requirements.txt
echo $ROCKETCHAT_GENERATION
if [ -n "$ROCKETCHAT_GENERATION" ]; then
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
fi
python3 ./scripts/generate_chat_info.py
wget -O ./site/data/chat_stat_monthly.json https://idees.crapaud-fou.org/data/chat_stat_monthly.json
wget -O ./site/data/chat_stat_daily.json https://idees.crapaud-fou.org/data/chat_stat_daily.json
wget -O ./site/data/chat.json https://idees.crapaud-fou.org/data/chat.json
# global
pip3 install -r ./scripts/requirements.txt
python3 ./scripts/generate_global_info.py