if temp_range:    
            all_constraints.append({'temperature': {'$gte': temp_range[0], '$lte': temp_range[1]}})