Skip to content

Commit

Permalink
Fix query & version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
weichenw committed Dec 2, 2021
1 parent 7e40110 commit 8a19cf3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-hypothesis-plugin",
"name": "Hypothes.is",
"version": "0.1.10",
"version": "0.1.11",
"minAppVersion": "0.11.0",
"description": "Sync your Hypothesis highlights",
"author": "weichenw",
Expand Down
4 changes: 2 additions & 2 deletions src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class ApiManager {
}

async getHighlights(lastSyncDate?: Date){
let offset = 0;
// let offset = 0;
let maxResult = 1000;
let initialQuery = true;
let result= [];
Expand All @@ -58,7 +58,7 @@ export default class ApiManager {
// const limit = lastSyncDate ? 200 : 100;
const limit = 200;

for(let resultCount = 0; resultCount < maxResult && offset <= maxResult; offset+= 2){
for(let resultCount = 0; resultCount < maxResult;){

try{
response = await fetch(`${this.baseUrl}/search?user=${this.userid}&offset=${resultCount}&limit=${limit}&sort=updated&order=asc`+queryDate, {headers: {...this.getHeaders()}})
Expand Down
1 change: 1 addition & 0 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"0.1.11": "0.11.0",
"0.1.10": "0.11.0",
"0.1.9": "0.11.0",
"0.1.8": "0.11.0",
Expand Down

0 comments on commit 8a19cf3

Please sign in to comment.