Temporary fix for val.town change

They [deprecated their `run` API](https://docs.val.town/api/run/) so I've hardcoded some stats here until I can fix this.
This commit is contained in:
JP Hastings-Spital 2024-02-12 21:59:37 +00:00
parent 3662aa2883
commit 20d404b521
2 changed files with 7 additions and 1 deletions

View file

@ -1,4 +1,6 @@
{{ $donations := getJSON "https://api.val.town/v1/run/byjp.donations" }}
{{/* $donations := getJSON "https://api.val.town/v1/run/byjp.donations" */}}
{{/* Having to hard-code for now, as I need to redesign the val.town val, as their API has changed! */}}
{{ $donations := dict "totalGBP" 101.36 "currencyCount" 2 }}
<p>Friends have donated <strong>£{{ div (math.Round (mul $donations.totalGBP 100)) 100 }}</strong> (in {{ $donations.currencyCount }} currencies) to worthy causes in thanks. Thank <em>you</em>!</em></p>
<style>
.donate input[type=number] {

View file

@ -2,6 +2,10 @@
Things I might work on within my personal blog's software.
### Bugs
- [ ] Fix val.town donations link ([deprecation notice](https://docs.val.town/api/run/))
### Ideas
- [ ] Complete Twitter import