Scripts: automatically download statistics every day and upload them, remove dependency on github

This commit is contained in:
Pieter Vander Vennet 2025-02-06 00:47:06 +01:00
parent d844434267
commit 321c55e0d2
3 changed files with 5 additions and 11 deletions

View file

@ -36,5 +36,5 @@ jobs:
run: |
scp -r hetzner:~/data/changeset-metadata/ .
npm run download:stats -- -- ./changeset-metadata/
scp -r ./changeset-metadata/* hetnzer:~/data/changeset-metadata/
scp -r ./changeset-metadata/* hetzner:~/data/changeset-metadata/

View file

@ -5,7 +5,7 @@
import AllStats from "./AllStats.svelte"
let homeUrl =
"https://raw.githubusercontent.com/pietervdvn/MapComplete-data/main/changeset-metadata/"
"https://data.mapcomplete.org/changeset-metadata/"
let stats_files = "file-overview.json"
let indexFile = UIEventSource.FromPromise(Utils.downloadJson<string[]>(homeUrl + stats_files))

View file

@ -1,11 +1,5 @@
import StatusGUI from "./Status/StatusGUI.svelte"
export default class StatusGui {
public setup() {
new StatusGUI({
target: document.getElementById("main"),
})
}
}
new StatusGui().setup()
new StatusGUI({
target: document.getElementById("main")
})