forked from MapComplete/MapComplete
Scripts: automatically download statistics every day and upload them, remove dependency on github
This commit is contained in:
parent
d844434267
commit
321c55e0d2
3 changed files with 5 additions and 11 deletions
|
@ -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/
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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")
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue