Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
score working
Browse files Browse the repository at this point in the history
  • Loading branch information
DonHaul committed Aug 26, 2024
1 parent 8fe752e commit f415c28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backoffice/backoffice/workflows/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
FilteringFilterBackend,
OrderingFilterBackend,
)
from django_elasticsearch_dsl_drf.viewsets import DocumentViewSet
from django_elasticsearch_dsl_drf.viewsets import BaseDocumentViewSet
from drf_spectacular.utils import (
OpenApiExample,
OpenApiParameter,
Expand Down Expand Up @@ -243,7 +243,7 @@ def restart(self, request, pk=None):
],
),
)
class WorkflowDocumentView(DocumentViewSet):
class WorkflowDocumentView(BaseDocumentViewSet):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.search = self.search.extra(track_total_hits=True)
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ services:
- ./backoffice/.envs/local/.postgres
ports:
- "8000:8000"
command: sh -c 'poetry run python manage.py migrate && poetry run python manage.py opensearch index rebuild --force && poetry run python manage.py runserver 0.0.0.0:8000'
command: sh -c 'poetry run python manage.py migrate && poetry run python manage.py opensearch index create --force && poetry run python manage.py runserver 0.0.0.0:8000'

postgres-airflow:
image: postgres:13
Expand Down

0 comments on commit f415c28

Please sign in to comment.