Commits

Rory McCann committed 4e1e425

Create an anonymous user all the time before the user is enrolled - for me I wasn't able to create an anonymous users, perhaps i was calling things in the wrong order, but this change makes it work for me

Comments (0)

Files changed (1)

experiments/utils.py

     def confirm_human(self):
         self.session['verified_human'] = True
         enrollments = self.session.get('temporary_enrollments', {})
-        if not enrollments:
-            # nothing to do - no need to create an AnonymousVisitor.
-            return
 
         anonymous_id = self.get_anonymous_id()
         anonymous_visitor = None