Esempio n. 1
0
 def _process(self, timeframe, my_rooms, mine):
     filters = {
         'timeframe': timeframe,
         'created_by': session.user if mine else None,
         'in_rooms_owned_by': session.user if my_rooms else None
     }
     blockings = get_room_blockings(**filters)
     return jsonify(blockings_schema.dump(blockings).data)
Esempio n. 2
0
 def _process(self, timeframe, my_rooms, mine):
     filters = {'timeframe': timeframe, 'created_by': session.user if mine else None,
                'in_rooms_owned_by': session.user if my_rooms else None}
     blockings = get_room_blockings(**filters)
     return jsonify(blockings_schema.dump(blockings).data)