Skip to content

Commit

Permalink
fix: 🐛 Add non-abstract delete_config method to mongoconfigstore (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoadesScholar committed Feb 28, 2024
2 parents 24f9d4f + 012cdb1 commit 86b41e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dacapo/store/mongo_config_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ def __init__(self, db_host, db_name):
self.__open_collections()
self.__init_db()

def delete_config(self, database, config_name: str) -> None:
database.delete_one({"name": config_name})

def store_run_config(self, run_config):
run_doc = converter.unstructure(run_config)
self.__save_insert(self.runs, run_doc)
Expand Down

0 comments on commit 86b41e8

Please sign in to comment.