diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-01-09 19:59:27 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-01-09 19:59:27 +0100 |
| commit | d7c5bc02cc2b27442f0d4c8aca70266762be2a32 (patch) | |
| tree | 3a675d15b539a4474be38704405b318bebecdce7 /addons/gamification/models/challenge.py | |
| parent | 37b518f1749aff3d6ffb2246c32f2aa1e67d9067 (diff) | |
| parent | 8aa8548d8ab68feb13f3bde51c557db84877e809 (diff) | |
[MERGE] forward port branch saas-12.1 up to 8aa8548d8ab
Diffstat (limited to 'addons/gamification/models/challenge.py')
| -rw-r--r-- | addons/gamification/models/challenge.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/gamification/models/challenge.py b/addons/gamification/models/challenge.py index 538ef952c95..345e06e34da 100644 --- a/addons/gamification/models/challenge.py +++ b/addons/gamification/models/challenge.py @@ -344,12 +344,12 @@ class Challenge(models.Model): date_clause = "" query_params = [line.id] if start_date: - date_clause += "AND g.start_date = %s" + date_clause += " AND g.start_date = %s" query_params.append(start_date) if end_date: - date_clause += "AND g.end_date = %s" + date_clause += " AND g.end_date = %s" query_params.append(end_date) - + query = """SELECT u.id AS user_id FROM res_users u LEFT JOIN gamification_goal g |
