Skip to content

Commit

Permalink
Use parameters as kw, not positional
Browse files Browse the repository at this point in the history
  • Loading branch information
augusto-herrmann committed Aug 27, 2024
1 parent 72d1160 commit 0f27457
Showing 1 changed file with 26 additions and 27 deletions.
53 changes: 26 additions & 27 deletions src/dou_dag_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,40 +289,39 @@ def perform_searches(

if "DOU" in sources:
dou_result = self.searchers["DOU"].exec_search(
term_list,
dou_sections,
search_date,
field,
is_exact_search,
ignore_signature_match,
force_rematch,
department,
get_trigger_date(context, local_time=True),
term_list=term_list,
dou_sections=dou_sections,
search_date=search_date,
field=field,
is_exact_search=is_exact_search,
ignore_signature_match=ignore_signature_match,
force_rematch=force_rematch,
department=department,
reference_date=get_trigger_date(context, local_time=True),
)
elif "INLABS" in sources:
inlabs_result = self.searchers["INLABS"].exec_search(
term_list,
dou_sections,
search_date,
department,
ignore_signature_match,
full_text,
use_summary,
get_trigger_date(context, local_time=True),
terms=term_list,
dou_sections=dou_sections,
search_date=search_date,
department=department,
ignore_signature_match=ignore_signature_match,
full_text=full_text,
use_summary=use_summary,
reference_date=get_trigger_date(context, local_time=True),
)

if "QD" in sources:
qd_result = self.searchers["QD"].exec_search(
territory_id,
term_list,
dou_sections,
search_date,
field,
is_exact_search,
ignore_signature_match,
force_rematch,
get_trigger_date(context, local_time=True),
result_as_email,
territory_id=territory_id,
term_list=term_list,
dou_sections=dou_sections,
search_date=search_date,
field=field,
is_exact_search=is_exact_search,
ignore_signature_match=ignore_signature_match,
reference_date=get_trigger_date(context, local_time=True),
result_as_email=result_as_email,
)

if "DOU" in sources and "QD" in sources:
Expand Down

0 comments on commit 0f27457

Please sign in to comment.