Example #1
0
 def get_current_week(self):
     service = DayService(user=self.__user)
     now = service.get_current_datetime()
     return self.get_week(date(now.year, now.month, now.day))
Example #2
0
 def get_next_week(self):
     service = DayService(user=self.__user)
     now = service.get_current_datetime()
     next_week = now + timedelta(days=7)
     return self.get_or_create_week(
         date(next_week.year, next_week.month, next_week.day))
Example #3
0
 def get_current_datetime(self):
     service = DayService(user=self.user)
     return service.get_current_datetime()