Skip to content
This repository was archived by the owner on Jan 6, 2026. It is now read-only.

Commit eca1f49

Browse files
author
Nikolas Haimerl
committed
change num of past miner stats
1 parent 056bc86 commit eca1f49

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

observablehq.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { jsonFetcher } from './src/data/json-fetcher.js'
22
import { getDateXDaysAgo } from './src/utils/date-utils.js'
33

4-
const startProviders = '2025-02-25'
4+
const startProviders = '2024-06-01'
55
const startClients = '2025-02-25'
66
const end = getDateXDaysAgo(1)
77

@@ -53,5 +53,5 @@ export default {
5353
// linkify: true, // convert URLs in Markdown to links
5454
// typographer: false, // smart quotes and other typographic improvements
5555
// cleanUrls: true, // drop .html from URLs
56-
dynamicPaths: [...providerPaths],
56+
dynamicPaths: [...clientPaths],
5757
}

src/data/spark-miner-rsr-summaries.json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getDateXDaysAgo } from '../utils/date-utils.js'
33

44
const summaries = {}
55

6-
for (let i = 201; i >= 1; i--) {
6+
for (let i = 100; i >= 1; i--) {
77
const dayString = getDateXDaysAgo(i)
88
summaries[dayString] = await jsonFetcher(
99
`https://stats.filspark.com/miners/retrieval-success-rate/summary?from=${dayString}&to=${dayString}`,

src/data/spark-miners-rsr.json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ const to = getDateXDaysAgo(1)
77
const output = await jsonFetcher(
88
`https://stats.filspark.com/miners/retrieval-success-rate/summary?from=${from}&to=${to}`,
99
)
10-
process.stdout.write(JSON.stringify(output))
10+
process.stdout.write(JSON.stringify(output[0]))

0 commit comments

Comments
 (0)