1
0
Fork 0
mirror of https://github.com/Findus23/RadioStats.git synced 2024-09-19 16:03:48 +02:00

fix bugs with loadmany

This commit is contained in:
Lukas Winkler 2019-08-21 19:50:31 +02:00
parent a7fd996886
commit 436c2504f2
Signed by: lukas
GPG key ID: 54DE4D798D244853
2 changed files with 3 additions and 3 deletions

View file

@ -97,7 +97,7 @@ def popular(channel):
get = get.group_by(Play.song).order_by(SQL('count').desc())
if request.args.get('offset'):
get = get.offset(int(request.args.get('offset')))
if request.args.get('highlimit', False):
if request.args.get('highlimit', "false") == "true":
limit = 1000
else:
limit = 10

View file

@ -214,13 +214,13 @@
});
},
getAdditional: function(many) {
const loadNumber = many ? 1000 : 10;
const loadNumber = (many === true) ? 1000 : 10;
axios.get(baseURL + this.channel, {
params: {
offset: this.offset,
date: this.momentDate.format("YYYY-MM-DD"),
dateType: this.dateType,
highlimit: many
highlimit: many === true
}
})
.then(response => {