Skip to content

Commit

Permalink
Rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Feb 23, 2024
1 parent 7517100 commit 9adb75d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def handle(self, *args, **options):
self.stdout_info("Reseting search_vector field...")
progress = 0
for i in range(0, SIAE_COUNT, RANGE_STEP): # to avoid memory issues
for siae in Siae.objects.prefetch_related("sectors", "offers", "labels").all()[i, i + RANGE_STEP]:
for siae in Siae.objects.prefetch_related("sectors", "offers", "labels").all()[i : i + RANGE_STEP]: # noqa
siae_search_vector = (
SearchVector(
Value(siae.name, output_field=models.CharField()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class Migration(migrations.Migration):
dependencies = [
("siaes", "0065_siae_legal_form"),
("siaes", "0071_alter_siae_kind"),
]

operations = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class Migration(migrations.Migration):
dependencies = [
("siaes", "0066_siae_search_vector"),
("siaes", "0072_siae_search_vector"),
]

operations = [
Expand Down
7 changes: 5 additions & 2 deletions lemarche/templates/siaes/search_results.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@
</form>
</div>
<div class="tab-pane fade"
id="search-full-text-1"
id="search-text"
role="tabpanel"
aria-labelledby="search-full-text-1-tab">
aria-labelledby="search-text-tab">
<form method="GET"
action="{% url 'siae:search_results' %}"
id="text-search-form"
Expand Down Expand Up @@ -430,6 +430,9 @@ <h1 class="h4 mb-0">
// first tab
let searchFilterTab = document.getElementById('search-filter-tab');
let searchFilterContent = document.getElementById('search-filter');
// second tab
let searchTextTab = document.getElementById('search-text-tab');
let searchTextContent = document.getElementById('search-text');
// third tab
let searchFullText1Tab = document.getElementById('search-full-text-1-tab');
let searchFullText1Content = document.getElementById('search-full-text-1');
Expand Down

0 comments on commit 9adb75d

Please sign in to comment.