Skip to content

Commit

Permalink
Merge pull request #82 from meownoid/total_seconds
Browse files Browse the repository at this point in the history
fix timedelta.seconds misuse
  • Loading branch information
leportella authored Feb 20, 2020
2 parents 3690aa7 + 12b9da8 commit 41f91f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nativeauthenticator/nativeauthenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def can_try_to_login_again(self, username):
return True

time_last_attempt = datetime.now() - login_attempts['time']
if time_last_attempt.seconds > self.seconds_before_next_try:
if time_last_attempt.total_seconds() > self.seconds_before_next_try:
return True

return False
Expand Down

0 comments on commit 41f91f8

Please sign in to comment.