switch data source to id for chat stats
This commit is contained in:
parent
d1153e68f1
commit
4ffe1e1090
1 changed files with 4 additions and 11 deletions
|
@ -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"
|
wget -O ./site/data/tube.json "https://tube.crapaud-fou.org/feeds/videos.json?sort=-publishedAt&filter=local"
|
||||||
|
|
||||||
# chat
|
# chat
|
||||||
pip3 install -r ./scripts/requirements.txt
|
wget -O ./site/data/chat_stat_monthly.json https://idees.crapaud-fou.org/data/chat_stat_monthly.json
|
||||||
echo $ROCKETCHAT_GENERATION
|
wget -O ./site/data/chat_stat_daily.json https://idees.crapaud-fou.org/data/chat_stat_daily.json
|
||||||
if [ -n "$ROCKETCHAT_GENERATION" ]; then
|
wget -O ./site/data/chat.json https://idees.crapaud-fou.org/data/chat.json
|
||||||
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
|
|
||||||
|
|
||||||
# global
|
# global
|
||||||
|
pip3 install -r ./scripts/requirements.txt
|
||||||
python3 ./scripts/generate_global_info.py
|
python3 ./scripts/generate_global_info.py
|
||||||
|
|
Loading…
Reference in a new issue