Skip to content

Statistics

Benjamin Schnabel edited this page Oct 19, 2022 · 3 revisions

The the website the current statistics are being displayed. This is generated by a script. The scripts creates hardcoded partial layout(statistics.html), which is then loaded by hugo.

Run the script with python statistics.py. Make sure you use a cronjob to update the statistics regularly.

Libraries needed:

  • os
  • json
  • SPARQLWrapper

Trubleshoot

Make sure SPARQL and the SPARQL-Endpoint is running (https://data.judaicalink.org/sparql/query). Check the console output. It the counter does not count up there is an issue with the akhi Javascript library. It the folder correct? ./layouts/partials/. Is the partial included in Hugo?

Clone this wiki locally