Commits

ken cochrane  committed 83bceb3 Merge
  • Participants
  • Parent commits f572d14, 434c6f1

Comments (0)

Files changed (2)

File visitor/middleware/visitor_middleware.py

         
         cookie_saved = request.session.get(constants.COOKIE_SAVED, None)
         visitor_key = request.session.get(constants.VISITOR_KEY, None)
-        visitor_key_cookie = get_vistor_cookie_key(request)
+        visitor_key_cookie = get_visitor_cookie_key(request)
         
         # print("cookie saved = %s" % cookie_saved)
         # print("visitor_key = %s" % visitor_key)

File visitor/visitor_utils.py

 
 
 #-------------------------------------------------------------------------------
-def get_vistor_cookie_key(request):
+def get_visitor_cookie_key(request):
     """ look for the cookie and if we find one return the visitor key """
     if constants.COOKIE_VISITOR_KEY in request.COOKIES:
         return request.COOKIES[constants.COOKIE_VISITOR_KEY]
         return None
         
 #-------------------------------------------------------------------------------
-def get_vistor_from_request(request):
+def get_visitor_from_request(request):
     """ look for the cookie and if we find one return the visitor key """
     if constants.COOKIE_VISITOR_KEY in request.COOKIES:
         return get_visitor(request.COOKIES[constants.COOKIE_VISITOR_KEY])