Skip to content

Commit

Permalink
Fix export issues
Browse files Browse the repository at this point in the history
  • Loading branch information
thenav56 committed Sep 28, 2023
1 parent 59794d8 commit 715ac49
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions apps/qbank/importer/xlsxform.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,11 @@ def create_leaf_groups(self):
leaf_groups = [
QBLeafGroup(
qbank=self.qbank,
name='-'.join([str(c) for c in [c1, c2] if c is not None]),
name=(
'qbank_' + '-'.join(
[str(c) for c in [c1, c2] if c is not None]
)
),
type=QBLeafGroup.Type.MATRIX_1D,
category_1=c1,
category_2=c2,
Expand All @@ -219,7 +223,11 @@ def create_leaf_groups(self):
leaf_groups.extend([
QBLeafGroup(
qbank=self.qbank,
name='-'.join([str(c) for c in [c1, c2, c3, c4] if c is not None]),
name=(
'qbank_' + '-'.join(
[str(c) for c in [c1, c2, c3, c4] if c is not None]
)
),
type=QBLeafGroup.Type.MATRIX_2D,
category_1=c1,
category_2=c2,
Expand Down

0 comments on commit 715ac49

Please sign in to comment.