Beispiel #1
0
 def to_json_dict(self):
     json_writable_dict = dict()
     json_writable_dict[
         self.day_date_attribute_name] = Utils.day_date_to_string(
             self.day_date)
     if self.entry_hour is not None:
         json_writable_dict[
             self.entry_hour_attribute_name] = Utils.hour_to_string(
                 self.entry_hour)
     if self.exit_hour is not None:
         json_writable_dict[
             self.exit_hour_attribute_name] = Utils.hour_to_string(
                 self.exit_hour)
     return json_writable_dict
 def check_exit_hour(self, day_date: str) -> str:
     day_date = Utils.to_date(day_date)
     day = self.days.get_day(day_date)
     return Utils.hour_to_string(day.exit_hour)