Ë
    0]jã  ã                   ól   — d dl mZ d dlmZ d dlmZ d dlmZmZ d dl	m
Z
  ee«      Zd
dee   defd	„Zy)é    )Ú	getLogger)ÚOptional)ÚHttpRequest)ÚdatetimeÚnow)Úget_cool_offNÚrequestÚreturnc                 ór   — t        | «      }|€t        d«      ‚| j                  }|€t        «       |z
  S ||z
  S )zG
    Get threshold for fetching access attempts from the database.
    zTCool off threshold can not be calculated with settings.AXES_COOLOFF_TIME set to None)r   Ú	TypeErrorÚaxes_attempt_timer   )r	   Úcool_offÚattempt_times      úD/var/www/zogu/zoguvenv/lib/python3.12/site-packages/axes/attempts.pyÚget_cool_off_thresholdr      sO   € ô
 ˜GÓ$€HØÐÜØbó
ð 	
ð ×,Ñ,€LØÐÜ‹u�xÑÐØ˜(Ñ"Ð"ó    )N)Úloggingr   Útypingr   Údjango.httpr   Údjango.utils.timezoner   r   Úaxes.helpersr   Ú__name__Úlogr   © r   r   ú<module>r      s6   ðÝ Ý å #ß /å %á�Ó€ñ# H¨[Ñ$9ð #ÀXô #r   