Commit 6dd2ddac38457c8eb2c3c4dc669ee1caba2d7d9d
1 parent
1185515f
Exists in
master
and in
39 other branches
removing quotes from raw sql - updates #104
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
src/proxy/models.py
| ... | ... | @@ -156,9 +156,9 @@ class TicketCollabCount(models.Model): |
| 156 | 156 | def change_session_attribute_email(sender, instance, **kwargs): |
| 157 | 157 | cursor = connections['trac'].cursor() |
| 158 | 158 | |
| 159 | - cursor.execute(("UPDATE session_attribute SET value = '%s' " | |
| 160 | - "WHERE name='email' AND sid='%s'"), | |
| 159 | + cursor.execute(("UPDATE session_attribute SET value=%s " | |
| 160 | + "WHERE name=email AND sid=%s"), | |
| 161 | 161 | [instance.email, instance.username]) |
| 162 | - cursor.execute(("UPDATE session_attribute SET value = '%s' " | |
| 163 | - "WHERE name='name' AND sid='%s'"), | |
| 162 | + cursor.execute(("UPDATE session_attribute SET value=%s " | |
| 163 | + "WHERE name=name AND sid=%s"), | |
| 164 | 164 | [instance.get_full_name(), instance.username]) | ... | ... |