From 6ffb395d688e74901a5141924271fbdbed9d3a23 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Wed, 3 Mar 2021 09:34:45 +0100 Subject: [PATCH] Limit to v2 models on v2.spacy.io --- website/src/templates/models.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/templates/models.js b/website/src/templates/models.js index a1a6f3b5a..e9b9a4d49 100644 --- a/website/src/templates/models.js +++ b/website/src/templates/models.js @@ -68,7 +68,7 @@ function isStableVersion(v) { function getLatestVersion(modelId, compatibility) { for (let [version, models] of Object.entries(compatibility)) { - if (isStableVersion(version) && models[modelId]) { + if (version.startsWith('2.') && isStableVersion(version) && models[modelId]) { const modelVersions = models[modelId] for (let modelVersion of modelVersions) { if (isStableVersion(modelVersion)) {