Skip to content

Commit

Permalink
fix musiconly
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima committed Dec 31, 2023
1 parent 562c1ac commit dc42d57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/static/js/random.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ document.getElementById("random").onclick = function() {
if (viewsTo.includes("k")) {
viewsTo = viewsTo.split("k")[0] * 1000
}
if (viewsTo == "∞") {
viewsTo = 'inf'
}

let apiUrl = "/api/videos/random?" + `views=${viewsFrom}-${viewsTo}&years=${yearsRange[0]}-${yearsRange[1]}&horizonly=${horizonly}`
if (musiconly) {
Expand Down

0 comments on commit dc42d57

Please sign in to comment.