Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/mainscreen.py
diff options
context:
space:
mode:
authorWade Brainerd <wadetb@gmail.com>2009-01-02 16:46:46 (GMT)
committer Wade Brainerd <wadetb@gmail.com>2009-01-02 16:46:46 (GMT)
commitb5321fbe108b7b66b7c1607dc229ea77e8279248 (patch)
tree4deb78edb70966ae902841073603db203894fed7 /mainscreen.py
parentb277a042162d77a1310575dc3183079ed68cde9d (diff)
Release tweaks.
Diffstat (limited to 'mainscreen.py')
-rw-r--r--mainscreen.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mainscreen.py b/mainscreen.py
index f3db6eb..63e4d04 100644
--- a/mainscreen.py
+++ b/mainscreen.py
@@ -143,7 +143,8 @@ class MainScreen(gtk.VBox):
"""Returns the index of the first lesson without a medal."""
index = len(self.lessons)-1
for i in xrange(0, len(self.lessons)):
- if not self.activity.data['medals'].has_key(self.lessons[i]['name']):
+ if self.lessons[i]['order'] >= 0 and \
+ not self.activity.data['medals'].has_key(self.lessons[i]['name']):
index = min(index, i)
return index