Esempio n. 1
0
 def _process(self, args):
     if 'bookable_hours' in args:
         self._check_invalid_times(args)
     update_room_availability(self.room, args)
     return jsonify(nonbookable_periods=nonbookable_periods_schema.dump(
         self.room.nonbookable_periods, many=True),
                    bookable_hours=bookable_hours_schema.dump(
                        self.room.bookable_hours, many=True))
Esempio n. 2
0
 def _process(self, args):
     if 'bookable_hours' in args:
         self._check_invalid_times(args)
     update_room_availability(self.room, args)
     return jsonify(
         nonbookable_periods=nonbookable_periods_schema.dump(self.room.nonbookable_periods, many=True),
         bookable_hours=bookable_hours_schema.dump(self.room.bookable_hours, many=True)
     )