Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
fix isort for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Jul 2, 2023
1 parent 8881b77 commit 317dc84
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gphotos_sync/authorize.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import logging
from datetime import timezone
from json import JSONDecodeError, dump, load
from pathlib import Path
from typing import List, Optional
from datetime import timezone

from google_auth_oauthlib.flow import InstalledAppFlow
from requests.adapters import HTTPAdapter
Expand Down Expand Up @@ -105,7 +105,9 @@ def authorize(self):
"refresh_token": flow.credentials.refresh_token,
"token_type": "Bearer",
"scope": flow.credentials.scopes,
"expires_at": flow.credentials.expiry.replace(tzinfo=timezone.utc).timestamp()
"expires_at": flow.credentials.expiry.replace(
tzinfo=timezone.utc
).timestamp(),
}

self.save_token(oauth2_token)
Expand Down

0 comments on commit 317dc84

Please sign in to comment.