Skip to content

Commit 749f6f1

Browse files
committed
Don't confirm_human multiple times
1 parent a8ca13d commit 749f6f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

experiments/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ def record_goal(self, goal_name):
159159
pass
160160

161161
def confirm_human(self):
162+
if self.session.get('experiments_verified_human', False):
163+
return
164+
162165
self.session['experiments_verified_human'] = True
163166

164167
enrollments = self.session.get('experiments_enrollments', None)

0 commit comments

Comments
 (0)