Skip to content

Commit

Permalink
More commentary
Browse files Browse the repository at this point in the history
  • Loading branch information
stijn-uva committed Oct 25, 2023
1 parent 81d7354 commit a36cbf6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions datasources/fourcat_import/import_4cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit a36cbf6

Please sign in to comment.