From ef55c5da379c0de70ca36a7f37dbaf2985e51113 Mon Sep 17 00:00:00 2001 From: Fuhu Xia Date: Fri, 23 Aug 2024 13:21:38 -0400 Subject: [PATCH] remove unnecessary code --- ckanext/geodatagov/cli.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ckanext/geodatagov/cli.py b/ckanext/geodatagov/cli.py index 0665a351..097ae43c 100644 --- a/ckanext/geodatagov/cli.py +++ b/ckanext/geodatagov/cli.py @@ -478,10 +478,7 @@ def db_solr_sync(dryrun, cleanup_solr, update_solr): for id, *_ in solr_package: work_list[id] = "solr" for id, *_ in db_package: - if id in work_list: - work_list[id] = "solr-db" - else: - work_list[id] = "db" + work_list[id] = "db" both = cleanup_solr == update_solr set_cleanup = {i if work_list[i] == "solr" else None for i in work_list} - {None} @@ -565,10 +562,7 @@ def db_solr_sync_next(dryrun, cleanup_solr, update_solr): for id, *_ in solr_package: work_list[id] = "solr" for id, *_ in db_package: - if id in work_list: - work_list[id] = "solr-db" - else: - work_list[id] = "db" + work_list[id] = "db" both = cleanup_solr == update_solr set_cleanup = {i if work_list[i] == "solr" else None for i in work_list} - {None}