Open deldesir opened 2 months ago
@deldesir add an explanation on top — so @avni can help review this?
"lb_search.py functions needs to be moved to cps/services/xb_utils.py because they are database-related"
So @deldesir will add a 4th commit to move lb search
functions (e.g. _merge_captions
, _construct_captions_search_query
, get_search_terms
[to be renamed get_captions_search_results
] ) from cps/lb_search.py to cps/services/xb_utils.py
(Essentially building on top of & revising...)
Related:
This pull request introduces a new utility module
xb_utils.py
designed to handle database operations forxklb-metadata.db
andiiab-glue.db
. The new module will:xklb-metadata.db
schema defined inxb.py
.iiab-glue.db
schema defined inglue-db.py
.The goal of this refactor is to centralize database-related functionalities, improve maintainability, and enhance the overall structure of the codebase. This change builds on and revises the functionality introduced in previous pull requests (#244 and #255).