Skip to content

Commit

Permalink
removed search_query_id which is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
theorm committed Feb 17, 2025
1 parent 294767f commit 88906fd
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions impresso/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ def export_query_as_csv_progress(
self,
job_id: int,
query: str,
search_query_id: int,
user_bitmap_key: int,
query_hash: str = "",
progress: float = 0.0,
Expand All @@ -134,7 +133,6 @@ def export_query_as_csv_progress(
self: The task instance.
job_id (int): The ID of the job to update.
query (str): The query string to execute.
search_query_id (int): The ID of the search query.
user_bitmap_key (int): The user bitmap key, as int.
query_hash (str, optional): The hash of the query. Defaults to an empty string.
skip (int, optional): The number of records to skip. Defaults to 0.
Expand Down Expand Up @@ -165,7 +163,6 @@ def export_query_as_csv_progress(
job_id=job.pk,
query=query,
query_hash=query_hash,
search_query_id=search_query_id,
user_bitmap_key=user_bitmap_key,
skip=page * limit,
limit=limit,
Expand All @@ -181,7 +178,6 @@ def export_query_as_csv(
query: str,
description: str,
query_hash: str,
search_query_id: int,
) -> None:
"""
Initiates a job to export a query as a CSV file and starts the export_query_as_csv_progress task.
Expand All @@ -192,7 +188,6 @@ def export_query_as_csv(
query (str): The query string to be exported.
description (str, optional): A description for the job. Defaults to an empty string.
query_hash (str, optional): A hash of the query string. Defaults to an empty string.
search_query_id (int, optional): The ID of the search query. Defaults to None.
Returns:
None
Expand Down Expand Up @@ -226,7 +221,6 @@ def export_query_as_csv(
job_id=job.pk,
query=query,
query_hash=query_hash,
search_query_id=search_query_id,
user_bitmap_key=user_bitmap.get_bitmap_as_int(),
)

Expand Down

0 comments on commit 88906fd

Please sign in to comment.