Default stats inner version to 1.x instead of 1.0

This commit is contained in:
Cadence Ember 2020-05-09 03:22:54 +12:00
parent f1a454b76a
commit 710400c4f1
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412
2 changed files with 1 additions and 2 deletions

View File

@ -24,7 +24,6 @@ module.exports = [
}
}
if (!parser.hasRemaining()) return null
console.log(parser.remaining())
while (parser.hasRemaining()) {
const line = parser.get({split: "\n"})
if (line.startsWith("|")) {

View File

@ -99,7 +99,7 @@ module.exports = [
},
{
route: "/api/stats/2.0", methods: ["GET"], code: async ({url}) => {
const selected = semver.maxSatisfying([...innerMap.keys()], url.searchParams.get("bv") || "1.0")
const selected = semver.maxSatisfying([...innerMap.keys()], url.searchParams.get("bv") || "1.x")
if (!selected) return reply(400, {
status: "fail",
fields: ["q:bv"],