22
33from src .core .tasks .url .operators .validate .queries .ctes .consensus .impl .agency import AgencyValidationCTEContainer
44from src .core .tasks .url .operators .validate .queries .ctes .consensus .impl .location import LocationValidationCTEContainer
5+ from src .core .tasks .url .operators .validate .queries .ctes .consensus .impl .name import NameValidationCTEContainer
56from src .core .tasks .url .operators .validate .queries .ctes .consensus .impl .record_type import \
67 RecordTypeValidationCTEContainer
78from src .core .tasks .url .operators .validate .queries .ctes .consensus .impl .url_type import URLTypeValidationCTEContainer
@@ -13,7 +14,8 @@ def add_where_condition(
1314 agency : AgencyValidationCTEContainer ,
1415 location : LocationValidationCTEContainer ,
1516 url_type : URLTypeValidationCTEContainer ,
16- record_type : RecordTypeValidationCTEContainer
17+ record_type : RecordTypeValidationCTEContainer ,
18+ name : NameValidationCTEContainer ,
1719) -> Select :
1820 return (
1921 query
@@ -25,13 +27,15 @@ def add_where_condition(
2527 agency .agency_id .isnot (None ),
2628 location .location_id .isnot (None ),
2729 record_type .record_type .isnot (None ),
30+ name .name .isnot (None ),
2831 ),
2932 and_ (
3033 url_type .url_type .in_ (
3134 (URLType .META_URL .value , URLType .INDIVIDUAL_RECORD .value )
3235 ),
3336 agency .agency_id .isnot (None ),
3437 location .location_id .isnot (None ),
38+ name .name .isnot (None ),
3539 ),
3640 url_type .url_type == URLType .NOT_RELEVANT .value
3741 ),
0 commit comments