fix: further Manifold Market tweaks

This commit is contained in:
NunoSempere 2022-01-11 23:25:06 +01:00
parent eb2bbe5551
commit 07f30f57a2

View File

@ -48,17 +48,18 @@ async function processPredictions(predictions) {
"stars": calculateStars("Manifold Markets", ({ "stars": calculateStars("Manifold Markets", ({
volume7days: prediction.volume7days, volume7days: prediction.volume7days,
volume24Hours: prediction.volume24Hours, volume24Hours: prediction.volume24Hours,
pool: prediction.pool // normally liquidity, but I don't actually want to show it. pool: prediction.pool
})), })),
"createdTime": prediction.createdTime, "createdTime": prediction.createdTime,
"volume7Days": prediction.volume7Days, "volume7Days": prediction.volume7Days,
"volume24Hours": prediction.volume24Hours, "volume24Hours": prediction.volume24Hours,
"liquidity": prediction.pool "pool": prediction.pool // normally liquidity, but I don't actually want to show it.
} }
}) })
return result return result
}) })
let unresolvedResults = results.filter(result => !result.isResolved) let unresolvedResults = results.filter(result => !result.isResolved)
console.log(unresolvedResults)
return unresolvedResults //resultsProcessed return unresolvedResults //resultsProcessed
} }
@ -73,4 +74,4 @@ export async function manifoldmarkets() {
await upsert(results, "manifoldmarkets-questions") await upsert(results, "manifoldmarkets-questions")
console.log("Done") console.log("Done")
} }
//manifoldmarkets() manifoldmarkets()