Skip to content

Commit bb160ee

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e012f18 commit bb160ee

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,3 @@ For each PR made, an entry should be added to this changelog. It should contain
5151
- In `title_patterns_table` definition, corrected the column reference
5252
- Made `match_pattern_type` searchable
5353
- Corrected the column references and made code consistent on all the other tables, i.e., `exclude_patterns_table`, `include_patterns_table`, `division_patterns_table` and `document_type_patterns_table`
54-

sde_collections/sinequa_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def get_full_texts(
257257
if total_count is None:
258258
total_count = response.get("TotalRowCount", 0)
259259

260-
yield (self._process_rows_to_records(rows),total_count)
260+
yield (self._process_rows_to_records(rows), total_count)
261261

262262
current_offset += len(rows)
263263

sde_collections/tasks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
)
1717
from sde_collections.utils import slack_utils
1818

19-
from .models.delta_url import DumpUrl,DeltaUrl,CuratedUrl
19+
from .models.delta_url import CuratedUrl, DeltaUrl, DumpUrl
2020
from .sinequa_api import Api
2121
from .utils.github_helper import GitHubHandler
2222

@@ -174,11 +174,11 @@ def fetch_and_replace_full_text(collection_id, server_name):
174174
# Step 1: Delete existing DumpUrl entries
175175
deleted_count, _ = DumpUrl.objects.filter(collection=collection).delete()
176176
print(f"Deleted {deleted_count} old records.")
177-
total_server_count=0
177+
total_server_count = 0
178178
try:
179179
# Step 2: Process data in batches
180180
total_processed = 0
181-
for batch,total_count in api.get_full_texts(collection.config_folder):
181+
for batch, total_count in api.get_full_texts(collection.config_folder):
182182
if total_server_count == 0:
183183
total_server_count = total_count
184184
with transaction.atomic():

0 commit comments

Comments
 (0)