Skip to content

Commit

Permalink
Updated SQL queries for MCUs and MCU cards
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanRuzavin committed Aug 1, 2024
1 parent c00b5d6 commit cfd2bfc
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions scripts/recursive_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,7 @@ def query_database(changes_dict):
WHERE SDKToDevice.sdk_uid = 'mikrosdk_v{sdk_version}'
AND SDKToDevice.device_uid REGEXP ?
AND Devices.sdk_support = '1'
AND SDKToDevice.device_uid NOT LIKE '%PIM%'
AND SDKToDevice.device_uid NOT LIKE '%CARD%'
AND SDKToDevice.device_uid NOT LIKE '%SPARKFUN%'
AND SDKToDevice.device_uid NOT LIKE '%SIBRAIN%';
AND SDKToDevice.device_uid NOT LIKE '%\\_%' ESCAPE '\\';
""", (regex,))
rows = cursor.fetchall()
if rows:
Expand All @@ -523,11 +520,7 @@ def query_database(changes_dict):
FROM SDKToDevice
INNER JOIN Devices ON SDKToDevice.device_uid = Devices.uid
WHERE SDKToDevice.sdk_uid = 'mikrosdk_v{sdk_version}'
AND Devices.sdk_support = '1'
AND SDKToDevice.device_uid NOT LIKE '%PIM%'
AND SDKToDevice.device_uid NOT LIKE '%CARD%'
AND SDKToDevice.device_uid NOT LIKE '%SPARKFUN%'
AND SDKToDevice.device_uid NOT LIKE '%SIBRAIN%';
AND SDKToDevice.device_uid NOT LIKE '%\\_%' ESCAPE '\\';
""")
rows = cursor.fetchall()
if rows:
Expand All @@ -541,7 +534,7 @@ def query_database(changes_dict):
SELECT device_uid
FROM SDKToDevice
WHERE sdk_uid = 'mikrosdk_v{sdk_version}'
AND device_uid REGEXP 'CARD|SIBRAIN|PIM|SPARKFUN';
AND device_uid REGEXP '_';
""")
rows = cursor.fetchall()
if rows:
Expand Down

0 comments on commit cfd2bfc

Please sign in to comment.