Skip to content

Commit 578ac2c

Browse files
committed
Update pv fetching tool.
1 parent 48bf5fd commit 578ac2c

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

tools/publish.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ check_status() {
2929
update_files() {
3030
bash _scripts/sh/create_pages.sh
3131
bash _scripts/sh/dump_lastmod.sh
32-
33-
find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
3432
}
3533

3634

tools/pv.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
set -eu
1717

1818
WORK_DIR=$(dirname $(dirname $(realpath "$0")))
19-
URL_FILE=${WORK_DIR}/assets/data/proxy.json
20-
PV_CACHE=${WORK_DIR}/assets/data/pageviews.json
19+
URL_FILE=${WORK_DIR}/_config.yml
20+
PV_CACHE=${WORK_DIR}/assets/js/data/pageviews.json
2121

22-
23-
PROXY_URL=$(jq -r '.proxyUrl' $URL_FILE)
22+
PROXY_URL=$(grep "proxy_endpoint:" $URL_FILE | sed "s/.*: '//g;s/'.*//")
2423

2524
wget $PROXY_URL -O $PV_CACHE
25+
26+
echo "ls $PV_CACHE"

0 commit comments

Comments
 (0)