Skip to content

Commit f9bc443

Browse files
yaakovpraislermaimorag
authored andcommitted
Fix ruff in CofenseTriage (#35373)
* fix ruff in CofenseTriage * test with infra * revert infra test * revert infra test
1 parent 24acc13 commit f9bc443

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Packs/CofenseTriage/Integrations/CofenseTriagev2/CofenseTriagev2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,10 +438,10 @@ def search_reports_command(triage_instance) -> None:
438438
file_hash = demisto.getArg('file_hash') # type: str
439439
reported_at = parse_date_range(demisto.args().get('reported_at', '7 days'))[
440440
0
441-
].replace(tzinfo=timezone.utc)
441+
].replace(tzinfo=timezone.utc) # noqa: UP017
442442
created_at = parse_date_range(demisto.args().get('created_at', '7 days'))[
443443
0
444-
].replace(tzinfo=timezone.utc)
444+
].replace(tzinfo=timezone.utc) # noqa: UP017
445445
try:
446446
max_matches = int(demisto.getArg('max_matches')) # type: int
447447
except ValueError:
@@ -536,7 +536,7 @@ def search_reports(
536536
def search_inbox_reports_command(triage_instance) -> None:
537537
reported_at = parse_date_range(demisto.args().get("reported_at", "7 days"))[
538538
0
539-
].replace(tzinfo=timezone.utc)
539+
].replace(tzinfo=timezone.utc) # noqa: UP017
540540

541541
try:
542542
reporters_clause = build_reporters_clause(triage_instance)

0 commit comments

Comments
 (0)