Skip to content

Commit f5e0680

Browse files
mmhwmaimorag
authored andcommitted
Fix autopep8 error (demisto#29908)
1 parent 4ab0bc3 commit f5e0680

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Templates/Integrations/Database/Database.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def fetch_incidents_command(client: Client, last_run_dict: Optional[dict], first
7070
]
7171
# Get last fetch from incidents
7272
if incidents:
73-
incidents.sort(key=lambda row: row.get('occurred')) # type: ignore[arg-type, return-value]
73+
incidents.sort(key=lambda row: row.get('occurred')) # type: ignore[arg-type, return-value]
7474
last_fetch = incidents[-1]['occurred']
7575
return {'last_run': last_fetch}, incidents
7676

@@ -85,9 +85,9 @@ def query_command(client: Client, args: dict) -> Tuple[str, dict, list]:
8585
raw_response = client.query(query)
8686
if raw_response:
8787
if columns:
88-
context = list()
88+
context = []
8989
for row in raw_response:
90-
context_entry = dict()
90+
context_entry = {}
9191
for i in range(len(columns)):
9292
context_entry[columns[i]] = row[i]
9393
context.append(context_entry)

0 commit comments

Comments
 (0)