Added different types
This commit is contained in:
parent
d8e3ad0bb5
commit
9f27b0c5d9
|
|
@ -79,6 +79,10 @@ class FiltersTagCategoryViewSet(mixins.ListModelMixin, viewsets.GenericViewSet):
|
|||
query_params = request.query_params
|
||||
|
||||
params_type = query_params.get('type')
|
||||
if query_params.get('establishment_type'):
|
||||
params_type = query_params.get('establishment_type')
|
||||
elif query_params.get('product_type'):
|
||||
params_type = query_params.get('product_type')
|
||||
|
||||
week_days = ("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")
|
||||
flags = ('toque_number', 'wine_region', 'works_noon', 'works_evening', 'works_now', 'works_at_weekday')
|
||||
|
|
@ -97,6 +101,8 @@ class FiltersTagCategoryViewSet(mixins.ListModelMixin, viewsets.GenericViewSet):
|
|||
for flag_name in additional_flags:
|
||||
filter_flags[flag_name] = True
|
||||
|
||||
print(filter_flags)
|
||||
|
||||
if filter_flags['toque_number']:
|
||||
toques = {
|
||||
"index_name": "toque_number",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user