added 6 more filters
This commit is contained in:
@@ -107,6 +107,48 @@ def get_filter_combinations(survey: QualtricsSurvey) -> list[dict]:
|
||||
'filters': {'consumer': options}
|
||||
})
|
||||
|
||||
# Business Owner - one at a time
|
||||
for business_owner in survey.options_business_owner:
|
||||
combinations.append({
|
||||
'name': f'BusinessOwner-{business_owner}',
|
||||
'filters': {'business_owner': [business_owner]}
|
||||
})
|
||||
|
||||
# Employment Status - one at a time
|
||||
for employment_status in survey.options_employment_status:
|
||||
combinations.append({
|
||||
'name': f'Employment-{employment_status}',
|
||||
'filters': {'employment_status': [employment_status]}
|
||||
})
|
||||
|
||||
# Personal Products - one at a time
|
||||
for personal_products in survey.options_personal_products:
|
||||
combinations.append({
|
||||
'name': f'Products-{personal_products}',
|
||||
'filters': {'personal_products': [personal_products]}
|
||||
})
|
||||
|
||||
# AI User - one at a time
|
||||
for ai_user in survey.options_ai_user:
|
||||
combinations.append({
|
||||
'name': f'AIUser-{ai_user}',
|
||||
'filters': {'ai_user': [ai_user]}
|
||||
})
|
||||
|
||||
# Investable Assets - one at a time
|
||||
for investable_assets in survey.options_investable_assets:
|
||||
combinations.append({
|
||||
'name': f'Assets-{investable_assets}',
|
||||
'filters': {'investable_assets': [investable_assets]}
|
||||
})
|
||||
|
||||
# Industry - one at a time
|
||||
for industry in survey.options_industry:
|
||||
combinations.append({
|
||||
'name': f'Industry-{industry}',
|
||||
'filters': {'industry': [industry]}
|
||||
})
|
||||
|
||||
return combinations
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user