Mercurial > libervia-backend
diff src/plugins/plugin_misc_quiz.py @ 660:69a8bfd266a5
core, plugins: fixed bad use of children instead of elements() for domish.Element instances.
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 15 Oct 2013 19:28:34 +0200 |
parents | 0b914394e74f |
children | 2805fa3f4bdf |
line wrap: on
line diff
--- a/src/plugins/plugin_misc_quiz.py Mon Oct 07 13:09:57 2013 +0200 +++ b/src/plugins/plugin_misc_quiz.py Tue Oct 15 19:28:34 2013 +0200 @@ -146,7 +146,7 @@ @param answer_result_elt: answer result element @return: (player, good_answer, score)""" score = {} - for score_elt in answer_result_elt.children: + for score_elt in answer_result_elt.elements(): score[score_elt['player']] = int(score_elt['score']) return (answer_result_elt['player'], answer_result_elt['good_answer'] == str(True), score)