[FIX] gamification: fetch results is a tuple

This commit is contained in:
Martin Trigaux 2015-01-20 16:15:10 +01:00
parent ec0c0f2973
commit 79e01f0f4d
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ class gamification_challenge(osv.Model):
OR (gg.state = 'reached'
AND (gg.end_date >= %s OR gg.end_date IS NULL)))
""", (tuple(ids), yesterday.strftime(DF)))
goal_ids = cr.fetchall()
goal_ids = [res[0] for res in cr.fetchall()]
# update every running goal already generated linked to selected challenges
goal_obj.update(cr, uid, goal_ids, context=context)