From 46f26247241fc9094cf5da0ea4be0049655ae53d Mon Sep 17 00:00:00 2001 From: wgroeneveld Date: Sat, 12 Nov 2022 10:17:24 +0100 Subject: [PATCH] .sqlite3 ext --- extras/popularposts.py | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extras/popularposts.py b/extras/popularposts.py index f1b5ad7b..c25d955c 100644 --- a/extras/popularposts.py +++ b/extras/popularposts.py @@ -21,7 +21,7 @@ order by total desc limit 5 """ -dbpath = "/var/www/goatcounter/db/goatcounter.db" +dbpath = "/var/www/goatcounter/db/goatcounter.sqlite3" if len(sys.argv) > 1: dbpath = sys.argv[1] diff --git a/package.json b/package.json index c3164383..128ad9f5 100644 --- a/package.json +++ b/package.json @@ -14,9 +14,9 @@ }, "scripts": { "prenote": "node hooks/prenote.js", - "precommit": "node hooks/precommit.js", - "precompile": "python extras/popularposts.py > data/popularposts.json", + + "precompile": "python3 extras/popularposts.py > data/popularposts.json", "compile": "hugo --cleanDestinationDir --destination docs", "predeploy": "/usr/local/bin/pagefind --source docs", "deploy": "rsync --archive --delete docs/ /var/www/brainbaking/",