Restrict website to 3.0 models until 3.1 release

This commit is contained in:
Adriane Boyd 2021-06-23 10:53:29 +02:00
parent 5467bd3655
commit a13f29bb54

View File

@ -96,7 +96,7 @@ function isStableVersion(v) {
function getLatestVersion(modelId, compatibility, prereleases) {
for (let [version, models] of Object.entries(compatibility)) {
if (isStableVersion(version) && models[modelId]) {
if (version.startsWith('3.0') && isStableVersion(version) && models[modelId]) {
const modelVersions = models[modelId]
for (let modelVersion of modelVersions) {
if (isStableVersion(modelVersion) || prereleases) {