mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-24 12:41:02 +02:00
Fix deletion of last collection
This commit is contained in:
parent
96ae0e1c60
commit
142e13dc7a
1 changed files with 2 additions and 6 deletions
|
|
@ -35,12 +35,8 @@ class CollectionConfigHandler:
|
||||||
"""
|
"""
|
||||||
logger.info(f"Processing collection configuration (version {version})")
|
logger.info(f"Processing collection configuration (version {version})")
|
||||||
|
|
||||||
# Extract collections from config
|
# Extract collections from config (treat missing key as empty)
|
||||||
if "collection" not in config:
|
collection_config = config.get("collection", {})
|
||||||
logger.debug("No collection configuration in config push")
|
|
||||||
return
|
|
||||||
|
|
||||||
collection_config = config["collection"]
|
|
||||||
|
|
||||||
# Track which collections we've seen in this config
|
# Track which collections we've seen in this config
|
||||||
current_collections: Set[tuple] = set()
|
current_collections: Set[tuple] = set()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue