From 3e8dac2d05ab3d290b64323981c71e1837865068 Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Thu, 16 May 2013 02:41:48 -0400 Subject: [PATCH] Fix bug in identification insertion; #901 The constraint we were using to locate the ctime to use was too loose relative to the distinct clause in the current_identifications view. --- www/%username/members.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/%username/members.json b/www/%username/members.json index b8b44d7c14..c95bea5b36 100644 --- a/www/%username/members.json +++ b/www/%username/members.json @@ -29,6 +29,7 @@ if POST: FROM identifications WHERE member=%s AND "group"=%s + AND identified_by=%s LIMIT 1 ), CURRENT_TIMESTAMP) , %s @@ -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("""