// assumes main concepts are empty before svoid quickImportMainConcepts(virtual Concepts oldConcepts) { Concepts concepts = db_mainConcepts(); concepts.miscMapPut("dbGrabber", func -> Bool { concepts.miscMapRemove("dbGrabber"); pcall { concepts.idCounter = getLong idCounter(oldConcepts); printVars_str(idCounter := concepts.idCounter); Map oldMap = cast _get concepts(oldConcepts); printVars_str(+oldMap); concepts.concepts.putAll((Map) quickImport_unlisted(oldMap)); // Note: this calls _doneLoading2() on all concepts concepts.assignConceptsToUs(); true; } false; }); }