Browse Source

increment qcount for every question, not just those with auto-generated names

pull/67/head
adam j hartz 1 month ago
parent
commit
7beb78608d
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      CHANGELOG.md
  2. +1
    -1
      catsoop/language.py

+ 3
- 0
CHANGELOG.md View File

@@ -6,6 +6,9 @@ _Work toward next release. Currently under development._

**CHANGED:**

* Auto-generated `csq_name` fields increment for every question, even those
that have names specified.

**DEPRECATED:**

**REMOVED:**


+ 1
- 1
catsoop/language.py View File

@@ -138,7 +138,7 @@ def xml_pre_handle(context):
exec(code, e)
if "csq_name" not in e:
e["csq_name"] = "q%06d" % qcount
qcount += 1
qcount += 1
if e["csq_name"] in names_seen:
o.append(
(


Loading…
Cancel
Save