We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73d5242 commit da7b10bCopy full SHA for da7b10b
1 file changed
optimade/server/create_app.py
@@ -62,6 +62,11 @@ def insert_main_data(
62
):
63
from optimade.utils import insert_from_jsonl
64
65
+ for coll_type in ["links", "structures", "references"]:
66
+ if len(entry_collections[coll_type]) > 0:
67
+ LOGGER.info("Skipping data insert: data already present.")
68
+ return
69
+
70
def _insert_test_data(endpoint: str | None = None):
71
import bson.json_util
72
from bson.objectid import ObjectId
@@ -133,7 +138,7 @@ def insert_index_data(
133
138
links_coll = entry_collections["links"]
134
139
135
140
if len(links_coll) > 0:
136
- LOGGER.info("Skipping index links inserct: links collection already populated.")
141
+ LOGGER.info("Skipping index links insert: links collection already populated.")
137
142
return
143
144
LOGGER.debug("Loading index links...")
0 commit comments