Skip to content

Commit

Permalink
Fix bug in identification insertion; gratipay#901
Browse files Browse the repository at this point in the history
The constraint we were using to locate the ctime to use was too loose
relative to the distinct clause in the current_identifications view.
  • Loading branch information
chadwhitacre authored and corytheboyd committed May 16, 2013
1 parent b43cfcf commit 2cadf24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/%username/members.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ if POST:
FROM identifications
WHERE member=%s
AND "group"=%s
AND identified_by=%s
LIMIT 1
), CURRENT_TIMESTAMP)
, %s
Expand All @@ -37,7 +38,7 @@ if POST:
, %s
);

""", (member, group, member, group, weight, user.username))
""", (member, group, user.username, member, group, weight, user.username))

if allowed_to_vote_on:
identifications = list(db.fetchall("""
Expand Down

0 comments on commit 2cadf24

Please sign in to comment.