From 2c6c00acc5ef38deea827e2941bc3ef1c6bed1c2 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Fri, 6 Jan 2023 19:45:51 -0500 Subject: [PATCH] test --- tdarr_inform.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tdarr_inform.py b/tdarr_inform.py index 11bdbd6..d21334e 100644 --- a/tdarr_inform.py +++ b/tdarr_inform.py @@ -65,10 +65,8 @@ def do_file_search(arr_file_path): if not len(response_json): return None DBids = [] - for x in response_json: - if "DB" in list(x.keys()): - DBids.append(x["DB"]) - # DBids = [response_json[x]["DB"] for x in response_json if "DB" in list(response_json[x].keys())] + DBids = [x["DB"] for x in response_json if "DB" in list(x.keys())] + DBids = list(set(DBids)) print(DBids) DBid = DBids[0] return DBid