Skip to content

Commit

Permalink
1.0.25 (#114)
Browse files Browse the repository at this point in the history
* Fix: full vault sync fix, mark completion fix
#104
#90

* Fix: TickTick has once again changed checkpoint processing.
closes #113
closes #111

... and get rid of extraneous logging.
  • Loading branch information
thesamim committed Apr 10, 2024
1 parent ddf2b74 commit ff304da
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "tickticksync",
"name": "TickTickSync",
"version": "1.0.25",
"version": "1.0.26",
"minAppVersion": "1.0.0",
"description": "Sync TickTick tasks to Obsidian, and Obsidian tasks to TickTick",
"author": "thesamim",
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "tickticksync",
"name": "TickTickSync",
"version": "1.0.25",
"version": "1.0.26",
"minAppVersion": "1.0.0",
"description": "Sync TickTick tasks to Obsidian, and Obsidian tasks to TickTick",
"author": "thesamim",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tickticksync",
"version": "1.0.25",
"version": "1.0.26",
"description": "Sync TickTick tasks to Obsidian, and Obsidian tasks to TickTick",
"main": "main.js",
"scripts": {
Expand Down
10 changes: 6 additions & 4 deletions src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class Tick {
};

const response = await this.makeRequest('Login', url, 'POST', body);
// console.log("Signed in Response: ", response)
console.log("Signed in Response: ", response)
if (response) {
this.token = response.token;
ret = await this.getInboxProperties();
Expand Down Expand Up @@ -128,14 +128,16 @@ export class Tick {

async getInboxProperties(): Promise<boolean> {
try {
let checkPoint = 0;
for (let i = 0; i < 10; i++) {
const url = `${this.apiUrl}/${allTasksEndPoint}` + this.getNextCheckPoint();
const url = `${this.apiUrl}/${allTasksEndPoint}` + checkPoint;
// console.log("url ", url)
// @ts-ignore
let response = await this.makeRequest('Get Inbox Properties', url, 'GET');
if (response) {
if (!response.inboxId) {
// console.log("Inbox ID not found ", response)
checkPoint = this.getNextCheckPoint();
continue;
}
this.inboxProperties.id = response.inboxId;
Expand Down Expand Up @@ -548,9 +550,9 @@ async makeRequest(operation: string, url: string, method: string, body: any|unde
} else {
requestOptions = this.createRequestOptions(method, url, body);
}
// console.log(requestOptions)
//console.log(requestOptions)
const result = await requestUrl(requestOptions);
// console.log(operation, result)
//console.log(operation, result)
if (result.status != 200) {
this.setError(operation, result, null );
return null
Expand Down
2 changes: 1 addition & 1 deletion src/syncModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ export class SyncMan {
//`Task ${lastLineTaskticktickId} was modified`
await this.plugin.saveSettings()
let message = `Task ${lineTask_ticktick_id} is updated.`;
console.log("#####", message);
// console.log("#####", message);
new Notice(message);

if (contentChanged) {
Expand Down
2 changes: 1 addition & 1 deletion src/taskParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ export class TaskParser {
} else {
str = (str + ` ${keywords.TickTick_TAG} `);
}
console.log("####", str);

return str;
}

Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
"1.0.22": "1.0.0",
"1.0.23": "1.0.0",
"1.0.24": "1.0.0",
"1.0.25": "1.0.0"
"1.0.25": "1.0.0",
"1.0.26": "1.0.0"
}

0 comments on commit ff304da

Please sign in to comment.