applet crashes on 'teach me'>'word list order and filters'

Bug #1354548 reported by SnTahmaz
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenTeacher
Fix Released
Medium
Marten de Vries

Bug Description

it doesn't work when i select something in 'word list order and filters' (except random).

Tags: words
Revision history for this message
Marten de Vries (marten-de-vries) wrote :

Thanks for your bug report. Sorry for getting back to you only now. You indeed found a valid bug. The traceback is:

CRITICAL:qt:Traceback (most recent call last):
  File "modules/org/openteacher/interfaces/qt/teachers/words/words.py", line 196, in _startLesson
    indexes = modifyList(indexes, self.lesson.list)
  File "modules/org/openteacher/logic/listModifiers/hardWords/hardWords.py", line 38, in modifyList
    newIndexes = filter(self._isHardWord, indexes)
  File "modules/org/openteacher/logic/listModifiers/hardWords/hardWords.py", line 43, in _isHardWord
    results = self._resultsFor(self._list["items"][index])
  File "modules/org/openteacher/logic/listModifiers/hardWords/hardWords.py", line 59, in _resultsFor
    return filter(lambda result: result["itemId"] == word["id"], results)
  File "modules/org/openteacher/logic/listModifiers/hardWords/hardWords.py", line 59, in <lambda>
    return filter(lambda result: result["itemId"] == word["id"], results)
TypeError: string indices must be integers, not str
Fatal Python error: Aborted

Changed in openteacher:
status: New → Triaged
importance: Undecided → Medium
tags: added: words
Revision history for this message
Marten de Vries (marten-de-vries) wrote :

Commit 9c656986b7b3bc87e2ec18f6ba1eff91be622717 fixes the bug I encountered. I tested the list modifiers a bit, and they seem fine now.

Changed in openteacher:
status: Triaged → Fix Committed
milestone: none → 3.3
assignee: nobody → Marten de Vries (marten-de-vries)
Revision history for this message
Marten de Vries (marten-de-vries) wrote :

Will be released as part of the currently building 3.3 release.

Changed in openteacher:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.