Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Fix bug in identification insertion; #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 committed May 16, 2013
1 parent 57eec2c commit 3e8dac2
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 3e8dac2

Please sign in to comment.