Source

django-misery / django_misery / middleware.py

Diff from to

File django_misery/middleware.py

 
 logger = logging.getLogger('django_misery')
 
-slowBanStrenght = getattr(settings, 'MISERY_SLOW_STRENGHT', '6')
+slowBanStrength = getattr(settings, 'MISERY_SLOW_STRENGTH', '6')
 logoutProbability = getattr(settings, 'MISERY_LOGOUT_PROBABILITY', '10')
 e403Probability = getattr(settings, 'MISERY_403_PROBABILITY', '10')
 e404Probability = getattr(settings, 'MISERY_404_PROBABILITY', '10')
 
         if is_miserized:
             # unleash the wrath
-            sleep(randint(int(slowBanStrenght), 2*int(slowBanStrenght)))
+            sleep(randint(int(slowBanStrength), 2*int(slowBanStrength)))
             
             if randint(0, 100) <= int(logoutProbability):
                 logout(request)