Skip to content

Commit

Permalink
remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
FuhuXia committed Aug 23, 2024
1 parent 3f3576f commit ef55c5d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions ckanext/geodatagov/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit ef55c5d

Please sign in to comment.