chore(linter): make ruff happy

This commit is contained in:
MingxuanGame
2025-10-04 05:01:05 +00:00
parent 382c1721df
commit 238520c577
2 changed files with 4 additions and 4 deletions

View File

@@ -25,8 +25,8 @@ def upgrade() -> None:
op.add_column("oauth_tokens", sa.Column("refresh_token_expires_at", sa.DateTime(), nullable=True))
op.create_index(op.f("ix_oauth_tokens_expires_at"), "oauth_tokens", ["expires_at"], unique=False)
expires_at = datetime.now() + timedelta(days=15)
expires_at_str = expires_at.strftime('%Y-%m-%d %H:%M:%S')
op.execute(f"UPDATE oauth_tokens SET refresh_token_expires_at = '{expires_at_str}'")
expires_at_str = expires_at.strftime("%Y-%m-%d %H:%M:%S")
op.execute(f"UPDATE oauth_tokens SET refresh_token_expires_at = '{expires_at_str}'") # noqa: S608
op.create_index(
op.f("ix_oauth_tokens_refresh_token_expires_at"), "oauth_tokens", ["refresh_token_expires_at"], unique=False
)