Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ with filtered_deduplicated_attribution_submission as (
snapshot_submission_device ssd1 join (
select value from json_each(@rulePatternManufacturer)
) r on (
ssd1.manufacturer like r.value
ssd1.manufacturer like r.value escape '\\'
)
) and
lower(ssd.manufacturer) not in (select lower(value) from json_each(@ruleLiteralManufacturer)) and
Expand All @@ -46,7 +46,7 @@ with filtered_deduplicated_attribution_submission as (
snapshot_submission_device ssd1 join (
select value from json_each(@rulePatternModel)
) r on (
ssd1.model like r.value
ssd1.model like r.value escape '\\'
)
)
), filtered_counted_device as materialized (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const pattern = {
"%ONVIF%", // a standard for ip video cameras, not an actual manufacturer
"0x%", // some protocol integrations (mostly fritzbox, but sometimes also matter) provide internal manufacturer code instead of name
"TUYA%", // tuya whitelabel devices (insufficient data quality)
"_T%", // tuya whitelabel devices (insufficient data quality)
"\\_T%", // tuya whitelabel devices (insufficient data quality)
"%???%", // tuya whitelabel devices (insufficient data quality)
],
model: [
Expand Down