Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#935 | Parallel Importer | Source/Collection…
Browse files Browse the repository at this point in the history
… version create to append results in created and not updated
  • Loading branch information
snyaggarwal committed Aug 20, 2021
1 parent 890687f commit fe07721
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/importers/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def parse(self):
def process(self):
source = Source(**self.data)
errors = Source.persist_new_version(source, self.user)
return errors or UPDATED
return errors or CREATED


class CollectionImporter(BaseResourceImporter):
Expand Down Expand Up @@ -344,7 +344,7 @@ def parse(self):
def process(self):
coll = Collection(**self.data)
errors = Collection.persist_new_version(coll, self.user)
return errors or UPDATED
return errors or CREATED


class ConceptImporter(BaseResourceImporter):
Expand Down

0 comments on commit fe07721

Please sign in to comment.