Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from synergy2.models.questions import Question
- from synergy2.models import db
- questions = Question.query.filter_by(type='question_short_answer')
- for question in questions:
- question.answer = {'answer': question.answer, 'prefix': [''], 'suffix': ['']}
- db.session.commit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement