Skip to content
Snippets Groups Projects
Commit 79e01f0f authored by Martin Trigaux's avatar Martin Trigaux
Browse files

[FIX] gamification: fetch results is a tuple

parent ec0c0f29
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment