From cd180a5455a354234651eaf7b84a766f1a51bd5d Mon Sep 17 00:00:00 2001 From: Mirek Simek Date: Wed, 15 May 2024 08:50:29 +0200 Subject: [PATCH] Timezone support - just to check builds - isort + black --- .../7def990b852e_add_expires_at_and_refresh_token_to_.py | 3 ++- invenio_oauthclient/models.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/invenio_oauthclient/alembic/7def990b852e_add_expires_at_and_refresh_token_to_.py b/invenio_oauthclient/alembic/7def990b852e_add_expires_at_and_refresh_token_to_.py index 269b714..b82cdcc 100644 --- a/invenio_oauthclient/alembic/7def990b852e_add_expires_at_and_refresh_token_to_.py +++ b/invenio_oauthclient/alembic/7def990b852e_add_expires_at_and_refresh_token_to_.py @@ -25,7 +25,8 @@ def upgrade(): sa.Column("refresh_token", sqlalchemy_utils.EncryptedType(), nullable=True), ) op.add_column( - "oauthclient_remotetoken", sa.Column("expires_at", sa.DateTime(timezone=True), nullable=True) + "oauthclient_remotetoken", + sa.Column("expires_at", sa.DateTime(timezone=True), nullable=True), ) diff --git a/invenio_oauthclient/models.py b/invenio_oauthclient/models.py index f087024..1c053d9 100644 --- a/invenio_oauthclient/models.py +++ b/invenio_oauthclient/models.py @@ -8,7 +8,7 @@ """Models for storing access tokens and links between users and remote apps.""" -from datetime import datetime, timezone, timedelta +from datetime import datetime, timedelta, timezone from flask import current_app