Skip to content

Commit

Permalink
Clean code for refresh condition
Browse files Browse the repository at this point in the history
  • Loading branch information
maximearmstrong committed Dec 4, 2024
1 parent 9ea442a commit 29a997b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -884,9 +884,9 @@ def _needs_refreshed_access_token(self) -> bool:
not self._access_token_value
or not self._access_token_timestamp
or self._access_token_timestamp
<= datetime.timestamp(
<= (
datetime.now() - timedelta(seconds=AIRBYTE_CLOUD_REFRESH_TIMEDELTA_SECONDS)
)
).timestamp()
)

def _make_request(
Expand Down

0 comments on commit 29a997b

Please sign in to comment.