-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
weeklyAtTime #428
Comments
Could you perhaps provide some sample code that helps us reproduce this issue? |
// Fuction that is called the save the habit
|
@desmondbaldwin Is this problem still present in the beta of CareKit 2.1? |
I am unable to tell because I am unable to use Carkit 2.1 at this time |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I create a schedule using weeklyAtATime on a given day, lets use today, Friday May 8th, only the tasks that are created that include a schedule with today's weekday (Weekday 6) are retrieved when I perform
storeManager.store.fetchAnyTask(withID: ........
Using that above date, if I create schedules with every other weekday (1,2,3,4,5,7) on today's date, I get the following error when I query the database:
Error: fetchFailed(reason: "No task with ID: 0BC8130D-FF80-4679-A6FC-C4330865CD1C")
I've confirmed that the ID is correct so I'm not sure why it's not being found for the other weekdays.
When I create the schedule using weeklyAtATime, I use today as the start date, I thought that was the issue but if I use tomorrow as the startdate to create a weekly schedule for something happening every Saturday, the query still does not find the task. I hope I explained this well.
The text was updated successfully, but these errors were encountered: