mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-22 08:07:30 +00:00
Default stats inner version to 1.x instead of 1.0
This commit is contained in:
parent
f1a454b76a
commit
710400c4f1
@ -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("|")) {
|
||||
|
@ -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"],
|
||||
|
Loading…
Reference in New Issue
Block a user