Skip to content

Commit

Permalink
DH-4724/changing the find_all() function
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadrezaPourreza committed Sep 26, 2023
1 parent 08f5244 commit 08fbb3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dataherald/context_store/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def retrieve_context_for_question(
samples = None
instructions = []
instruction_repository = InstructionRepository(self.db)
for instruction in instruction_repository.find_all():
all_instructions = instruction_repository.find_all()
for instruction in all_instructions:
if instruction.db_connection_id == nl_question.db_connection_id:
instructions.append(
{
Expand Down

0 comments on commit 08fbb3c

Please sign in to comment.