Skip to content

Commit

Permalink
Remove group creation count (groups are no longer created)
Browse files Browse the repository at this point in the history
  • Loading branch information
arielpontes committed Jan 8, 2021
1 parent 9441486 commit dcd50b7
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions gemet/thesaurus/import_spreadsheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from gemet.thesaurus.models import (
Namespace, Version, Concept, Property, PropertyType, Relation, Language
)
from gemet.thesaurus.utils import get_new_code, get_search_text
from gemet.thesaurus.utils import get_new_code


CONCEPT_NS = Namespace.objects.get(heading='Concepts')
Expand Down Expand Up @@ -74,8 +74,6 @@ def import_file(self):
num_reg_concepts_bef = Concept.objects.filter(
namespace=self.concept_ns
).count()
# Number of group concepts before
num_groups_bef = Concept.objects.filter(namespace=self.group_ns).count()

try:
print("Opening file...")
Expand Down Expand Up @@ -107,11 +105,8 @@ def import_file(self):
namespace=self.group_ns
).count()

results = (
"Created {} regular concepts and {} group concepts."
).format(
results = ("Created {} concepts.").format(
num_reg_concepts_after - num_reg_concepts_bef,
num_groups_after - num_groups_bef,
)

# All other sheets must have translations
Expand Down

0 comments on commit dcd50b7

Please sign in to comment.