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:
parent
a7fd996886
commit
436c2504f2
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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 => {
|
||||
|
|
Loading…
Reference in a new issue