Spaces:
Sleeping
Sleeping
Update CosmosDBHandlers/cosmosConnector.py
Browse files
CosmosDBHandlers/cosmosConnector.py
CHANGED
|
@@ -292,11 +292,11 @@ class CosmosLampHandler:
|
|
| 292 |
# Build query
|
| 293 |
query_parts = []
|
| 294 |
if input_min and input_max:
|
| 295 |
-
query_parts.append(f"c.nom_input_voltage_v.min
|
| 296 |
-
self.logger.info(f"c.nom_input_voltage_v.min
|
| 297 |
if output_min and output_max:
|
| 298 |
-
query_parts.append(f"c.output_voltage_v.min
|
| 299 |
-
self.logger.info(f"c.nom_input_voltage_v.min
|
| 300 |
if current:
|
| 301 |
query_parts.append(f"c.type LIKE '%{current}%'")
|
| 302 |
|
|
|
|
| 292 |
# Build query
|
| 293 |
query_parts = []
|
| 294 |
if input_min and input_max:
|
| 295 |
+
query_parts.append(f"c.nom_input_voltage_v.min = {input_max} AND c.nom_input_voltage_v.max = {input_min}")
|
| 296 |
+
self.logger.info(f"c.nom_input_voltage_v.min = {input_max} AND c.nom_input_voltage_v.max = {input_min}")
|
| 297 |
if output_min and output_max:
|
| 298 |
+
query_parts.append(f"c.output_voltage_v.min = {output_max} AND c.output_voltage_v.max = {output_min}")
|
| 299 |
+
self.logger.info(f"c.nom_input_voltage_v.min = {output_max} AND c.nom_input_voltage_v.max = {output_min}")
|
| 300 |
if current:
|
| 301 |
query_parts.append(f"c.type LIKE '%{current}%'")
|
| 302 |
|