Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-muchiri committed Jun 26, 2023
1 parent 04a318b commit 5bbae98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions onadata/libs/utils/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,20 +111,20 @@ def check_token(self, invitation, token): # pylint: disable=arguments-renamed

# Check that the timestamp/uid has not been tampered with
if not constant_time_compare(
self._make_token_with_timestamp(
self._make_token_with_timestamp( # pylint: disable=no-value-for-parameter
invitation, ts
), # pylint: disable=no-value-for-parameter
),
token,
):
# RemovedInDjango40Warning: when the deprecation ends, replace
# with:
# return False
if not constant_time_compare(
self._make_token_with_timestamp(
self._make_token_with_timestamp( # pylint: disable=unexpected-keyword-arg
invitation,
ts,
legacy=True,
), # pylint: disable=no-value-for-parameter, unexpected-keyword-arg
), # pylint: disable=no-value-for-parameter
token,
):
return False
Expand Down

0 comments on commit 5bbae98

Please sign in to comment.