[FIX] gamification: fetch results is a tuple
This commit is contained in:
parent
ec0c0f2973
commit
79e01f0f4d
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue