Skip to content

Commit

Permalink
Fix log error with timedelta
Browse files Browse the repository at this point in the history
  • Loading branch information
LoanR committed May 31, 2024
1 parent f119516 commit f9dfddc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/b3desk/models/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import hashlib
from datetime import date
from datetime import datetime
from datetime import timedelta
from urllib.parse import urlparse
from urllib.parse import urlunparse

Expand Down Expand Up @@ -222,7 +223,8 @@ def update_user_nc_credentials(user, user_info):
current_app.logger.info(
"Nextcloud login for user %s not to be refreshed for %s",
user,
elapsed_time - current_app.config["NC_LOGIN_TIMEDELTA_DAYS"],
timedelta(days=current_app.config["NC_LOGIN_TIMEDELTA_DAYS"])
- elapsed_time,
)
return False

Expand Down

0 comments on commit f9dfddc

Please sign in to comment.