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)
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)