Skip to content
Snippets Groups Projects
Commit 0a93f7c6 authored by Stefano Di Frischia's avatar Stefano Di Frischia
Browse files

L2SS-1030: remove like statements

parent 29b3081c
No related branches found
No related tags found
1 merge request!468Resolve L2SS-1030 "Create configuration device"
...@@ -4,8 +4,7 @@ from itertools import islice ...@@ -4,8 +4,7 @@ from itertools import islice
DEVICE_PROPERTIES_QUERY = "SELECT device, property_device.name, property_device.value FROM property_device \ DEVICE_PROPERTIES_QUERY = "SELECT device, property_device.name, property_device.value FROM property_device \
INNER JOIN device ON property_device.device = device.name \ INNER JOIN device ON property_device.device = device.name \
WHERE server LIKE '%' AND class LIKE '%' AND device LIKE '%' \ WHERE class != 'DServer' \
AND class != 'DServer' \
AND property_device.name != '__SubDevices' \ AND property_device.name != '__SubDevices' \
ORDER BY device, property_device.name, property_device.count ASC" ORDER BY device, property_device.name, property_device.count ASC"
...@@ -13,13 +12,11 @@ ATTRS_PROPERTIES_QUERY = "SELECT device, attribute, property_attribute_device.na ...@@ -13,13 +12,11 @@ ATTRS_PROPERTIES_QUERY = "SELECT device, attribute, property_attribute_device.na
property_attribute_device.value \ property_attribute_device.value \
FROM property_attribute_device \ FROM property_attribute_device \
INNER JOIN device ON property_attribute_device.device = device.name \ INNER JOIN device ON property_attribute_device.device = device.name \
WHERE server LIKE '%' AND class LIKE '%' AND device LIKE '%' \ WHERE class != 'DServer' \
AND class != 'DServer' \
ORDER BY device, property_attribute_device.name, property_attribute_device.count ASC" ORDER BY device, property_attribute_device.name, property_attribute_device.count ASC"
SERVER_QUERY = "SELECT server, class, name FROM device \ SERVER_QUERY = "SELECT server, class, name FROM device \
WHERE server LIKE '%' AND class LIKE '%' AND name LIKE '%' \ WHERE class != 'DServer' \
AND class != 'DServer' \
ORDER BY server ASC" ORDER BY server ASC"
def get_db_data(db, tangodb_timeout:int = 10000): def get_db_data(db, tangodb_timeout:int = 10000):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment