Skip to content

Commit

Permalink
Fix ruff in CofenseTriage (demisto#35373)
Browse files Browse the repository at this point in the history
* fix ruff in CofenseTriage

* test with infra

* revert infra test

* revert infra test
  • Loading branch information
yaakovpraisler authored Jul 11, 2024
1 parent 83ba6ce commit 9a79774
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,10 +438,10 @@ def search_reports_command(triage_instance) -> None:
file_hash = demisto.getArg('file_hash') # type: str
reported_at = parse_date_range(demisto.args().get('reported_at', '7 days'))[
0
].replace(tzinfo=timezone.utc)
].replace(tzinfo=timezone.utc) # noqa: UP017
created_at = parse_date_range(demisto.args().get('created_at', '7 days'))[
0
].replace(tzinfo=timezone.utc)
].replace(tzinfo=timezone.utc) # noqa: UP017
try:
max_matches = int(demisto.getArg('max_matches')) # type: int
except ValueError:
Expand Down Expand Up @@ -536,7 +536,7 @@ def search_reports(
def search_inbox_reports_command(triage_instance) -> None:
reported_at = parse_date_range(demisto.args().get("reported_at", "7 days"))[
0
].replace(tzinfo=timezone.utc)
].replace(tzinfo=timezone.utc) # noqa: UP017

try:
reporters_clause = build_reporters_clause(triage_instance)
Expand Down

0 comments on commit 9a79774

Please sign in to comment.