Skip to content

fix: correct get_completed() call signature#8

Open
glanzelius wants to merge 1 commit into
jen6:mainfrom
glanzelius:fix/get-completed-signature
Open

fix: correct get_completed() call signature#8
glanzelius wants to merge 1 commit into
jen6:mainfrom
glanzelius:fix/get-completed-signature

Conversation

@glanzelius

Copy link
Copy Markdown

Problem

ticktick_filter_tasks with status: completed raises:

Root Cause

TaskManager.get_completed() signature is get_completed(self, start, end=None, ...).
The previous code passed from_date= and to_date= as keyword arguments, which don't exist.
Also, the call had an erroneous await — ticktick-py is synchronous.

Fix

  • Pass start_dt and end_dt as positional arguments
  • Remove await

TaskManager.get_completed() takes positional args (start, end),
not keyword args (from_date, to_date). Also removed erroneous
await as ticktick-py is synchronous.

Fixes TypeError: get_completed() got an unexpected keyword argument 'from_date'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant