fix: guesstimate/visualization
This commit is contained in:
parent
9a3b7c9d94
commit
3ef786db4b
|
@ -34,7 +34,7 @@ export default async function searchGuesstimate(
|
||||||
? model.description.replace(/\n/g, " ").replace(/ /g, " ")
|
? model.description.replace(/\n/g, " ").replace(/ /g, " ")
|
||||||
: "";
|
: "";
|
||||||
const stars = description.length > 250 ? 2 : 1;
|
const stars = description.length > 250 ? 2 : 1;
|
||||||
return {
|
const q: AlgoliaQuestion = {
|
||||||
id: `guesstimate-${model.id}`,
|
id: `guesstimate-${model.id}`,
|
||||||
title: model.name,
|
title: model.name,
|
||||||
url: `https://www.getguesstimate.com/models/${model.id}`,
|
url: `https://www.getguesstimate.com/models/${model.id}`,
|
||||||
|
@ -48,10 +48,12 @@ export default async function searchGuesstimate(
|
||||||
numforecasters: 1,
|
numforecasters: 1,
|
||||||
},
|
},
|
||||||
stars,
|
stars,
|
||||||
extra: {},
|
extra: {
|
||||||
visualization: model.big_screenshot,
|
visualization: model.big_screenshot,
|
||||||
ranking: 10 * (index + 1) - 0.5, //(model._rankingInfo - 1*index)// hack
|
},
|
||||||
|
// ranking: 10 * (index + 1) - 0.5, //(model._rankingInfo - 1*index)// hack
|
||||||
};
|
};
|
||||||
|
return q;
|
||||||
});
|
});
|
||||||
|
|
||||||
// filter for duplicates. Surprisingly common.
|
// filter for duplicates. Surprisingly common.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user