Skip to content

Commit

Permalink
fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
ranchodeluxe committed Nov 6, 2023
1 parent d2593b3 commit 99a562b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def insert_items(files):
for filename in files:
print(filename)
events = json.load(open(filename))
if type(events) != list:
if not isinstance(events, list):
events = [events]
for event in events:
raw_data = f"dags trigger veda_discover --conf '{json.dumps(event)}'"
Expand Down

0 comments on commit 99a562b

Please sign in to comment.