From a36cbf63f24613ee4440685d9bac98157a940ca0 Mon Sep 17 00:00:00 2001 From: Stijn Peeters Date: Wed, 25 Oct 2023 15:21:56 +0200 Subject: [PATCH] More commentary --- datasources/fourcat_import/import_4cat.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/datasources/fourcat_import/import_4cat.py b/datasources/fourcat_import/import_4cat.py index 26cda701a..c7769f018 100644 --- a/datasources/fourcat_import/import_4cat.py +++ b/datasources/fourcat_import/import_4cat.py @@ -120,12 +120,17 @@ def process(self): # processor's "own" dataset. the key has already been set to # the imported dataset's key via ensure_key() (or a new unqiue # key if it already existed on this server) + # by making it the "own" dataset, the user initiating the + # import will see the imported dataset as the "result" of their + # import query in the interface, similar to the workflow for + # other data sources new_dataset = self.dataset metadata.pop("key") # key already OK (see above) self.db.update("datasets", where={"key": new_dataset.key}, data=metadata) else: # supernumerary datasets - handle on their own + # these include any children of imported datasets try: key_exists = DataSet(key=metadata["key"], db=self.db)