don't add two typeans fields on upgrade

This commit is contained in:
Damien Elmes 2011-12-02 17:37:10 +09:00
parent dc73ba8e47
commit a0d910201d

View file

@ -406,7 +406,8 @@ order by ordinal""", mid)):
"(?i){{modelTags}}", "{{Model}}", conf[type]) "(?i){{modelTags}}", "{{Model}}", conf[type])
# type answer is now embedded in the format # type answer is now embedded in the format
if typeAns: if typeAns:
conf[type] += '<br>{{type:%s}}' % typeAns if type == "qfmt" or hideq:
conf[type] += '<br>{{type:%s}}' % typeAns
# q fields now in a # q fields now in a
if not hideq: if not hideq:
conf['afmt'] = ( conf['afmt'] = (