Fix need_renew
This commit is contained in:
parent
b27e5cc92e
commit
fe1ee23c7c
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ class Re2oAPIClient:
|
|||
True is the token expiration time is within less than `TIME_FOR_RENEW`
|
||||
seconds
|
||||
"""
|
||||
return self.token['expiration'] > \
|
||||
return self.token['expiration'] < \
|
||||
datetime.datetime.now(datetime.timezone.utc) + \
|
||||
datetime.timedelta(seconds=TIME_FOR_RENEW)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue