Skip to content

Commit

Permalink
Update Worker.js
Browse files Browse the repository at this point in the history
How in the world! I thought I checked this yesterday! In any case, the append should not be limited this way. Breaks search.
  • Loading branch information
poetaster authored Dec 23, 2022
1 parent ba5ef74 commit 3bb76d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qml/lib/Worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ function addDataToModel (model, mode, items) {
console.log("Fetched > " +length + " in " + mode)
var i
if (mode === "append") {

model.append(items)
/*
for(i = 0; i <= length-1; i++) {
if ( knownIds.indexOf( items[i]["id"]) === -1) {
if ( items[i]["id"] < max_id ) {
Expand All @@ -172,6 +173,7 @@ function addDataToModel (model, mode, items) {
}
}
}
*/
} else if (mode === "prepend") {
for(i = length-1; i >= 0 ; i--) {
if ( knownIds.indexOf( items[i]["id"]) === -1) {
Expand Down

0 comments on commit 3bb76d7

Please sign in to comment.