Пример #1
0
 def set_daily(self):
     self.request["recurrence"] = {
         "pattern": {
             "interval": 1,
             "type": "daily"
         },
         "range": {
             "startDate": datetime_to_api_timestamp(datetime.now()),
             "type": "noEnd"
         }
     }
Пример #2
0
 def set_title(self, title: str):
     self.request["title"] = title
     self.request["recurrence"] = {
         "pattern": {
             "interval": 1024,
             "type": "daily"
         },
         "range": {
             "startDate": datetime_to_api_timestamp(datetime.now()),
             "type": "noEnd"
         }
     }
Пример #3
0
 def set_reminder(self, reminder_datetime):
     self.request["isReminderOn"] = True
     self.request["reminderDateTime"] = datetime_to_api_timestamp(reminder_datetime)
Пример #4
0
 def set_completed(self):
     self.request["completedDateTime"] = datetime_to_api_timestamp(datetime.now())
     self.set_status(self.Status.Completed)