Skip to content

Commit

Permalink
Merge pull request #37 from epinzur/fix_bug
Browse files Browse the repository at this point in the history
fixed bug
  • Loading branch information
epinzur authored Jun 27, 2024
2 parents 09ed7c7 + f79d0ca commit 6c9c092
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ragulate/pipelines/query_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ def __init__(
queries = [queries[i] for i in sampled_indices]

# Check for existing records and filter queries
existing_records = self._tru.get_records_and_feedback(
existing_records, _feedbacks = self._tru.get_records_and_feedback(
app_ids=[dataset.name]
)
existing_queries = {record.query for record in existing_records}
existing_queries = existing_records["input"].dropna().tolist()
queries = [query for query in queries if query not in existing_queries]

self._queries[dataset.name] = queries
Expand Down

0 comments on commit 6c9c092

Please sign in to comment.