Skip to content

Commit

Permalink
Fix autopep8 error (demisto#29908)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmhw authored Sep 27, 2023
1 parent 940f081 commit c71058a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Templates/Integrations/Database/Database.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def fetch_incidents_command(client: Client, last_run_dict: Optional[dict], first
]
# Get last fetch from incidents
if incidents:
incidents.sort(key=lambda row: row.get('occurred')) # type: ignore[arg-type, return-value]
incidents.sort(key=lambda row: row.get('occurred')) # type: ignore[arg-type, return-value]
last_fetch = incidents[-1]['occurred']
return {'last_run': last_fetch}, incidents

Expand All @@ -85,9 +85,9 @@ def query_command(client: Client, args: dict) -> Tuple[str, dict, list]:
raw_response = client.query(query)
if raw_response:
if columns:
context = list()
context = []
for row in raw_response:
context_entry = dict()
context_entry = {}
for i in range(len(columns)):
context_entry[columns[i]] = row[i]
context.append(context_entry)
Expand Down

0 comments on commit c71058a

Please sign in to comment.