Merge pull request #9 from koccs/fixes

This commit is contained in:
Luke Arran 2022-03-04 08:44:20 +00:00 committed by GitHub
commit 503bc9188c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class Expando(object):
def isAuthenticated(): def isAuthenticated():
with open(f"{Path.home()}/.pytrakt.json") as f: with open("pytrakt.json") as f:
data = json.load(f) data = json.load(f)
daysBeforeExpiration = ( daysBeforeExpiration = (
datetime.fromtimestamp(data["OAUTH_EXPIRES_AT"]) - datetime.now() datetime.fromtimestamp(data["OAUTH_EXPIRES_AT"]) - datetime.now()

3
pytrakt.json Normal file
View File

@ -0,0 +1,3 @@
{
"OAUTH_EXPIRES_AT": 0
}