Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Scarvy committed Feb 12, 2024
1 parent ca8cd5f commit 72b9b1e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,26 @@ You can also use:

python -m ticktick_to_sqlite --help

### Authenticate

Store app settings for OAuth.

(venv) $ ticktick-to-sqlite auth
Register your application and obtain: Client ID Client secret, and pick a redirect URL and Paste it here:

Client ID: your_client_id
Client Secret: your_client_secret
Redirect URL: https://127.0.0.1

### Tasks

Save your uncompleted tasks.

ticktick-to-sqlite tasks ticktick.db

Save your completed tasks for a specified time range (ex. after Jan 1st, 2024).
Save your completed tasks for a specified time range (ex. between Dec 31st, 2023 and Jan 31st, 2024).

ticktick-to-sqlite completed-tasks ticktick.db 2024-01-01
ticktick-to-sqlite completed-tasks ticktick.db 2023-12-31 --end-date 2024-01-31

### Tags

Expand Down
2 changes: 1 addition & 1 deletion ticktick_to_sqlite/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def projects(db_path, username, password, auth):
help="Path to OAuth token file",
)
def project_folders(db_path, username, password, auth):
"""Fetch project folders"""
"""Fetch project folders."""
db = sqlite_utils.Database(db_path)
if not username or not password:
raise EnvironmentError(
Expand Down

0 comments on commit 72b9b1e

Please sign in to comment.