diff options
author | Gonzalo Odiard <godiard@sugarlabs.org> | 2014-04-11 18:08:04 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2014-05-14 21:21:41 (GMT) |
commit | 978f23c60cb0e51336c75338becac38c308f569b (patch) | |
tree | f47fb74453e7afea03bf72d979d64520035d59eb /model.py | |
parent | c8784bb03b310553fa5fba7482ac59c6c446b972 (diff) |
port to gtk3: initial fixes to resources edit screen
Diffstat (limited to 'model.py')
-rw-r--r-- | model.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -56,6 +56,7 @@ class GameModel: self.data['state']['replied_questions'].append(id_question) def get_resource(self, id_resource): + id_resource = int(id_resource) for resource in self.data['resources']: if resource['id_resource'] == int(id_resource): return resource |