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

@@ -32,8 +32,8 @@ class LocalStorageService(StorageService):
self,
file_path: str,
content: bytes,
content_type: str = "application/octet-stream",
cache_control: str = "public, max-age=31536000",
content_type: str = "application/octet-stream", # noqa: ARG002
cache_control: str = "public, max-age=31536000", # noqa: ARG002
) -> None:
full_path = self._get_file_path(file_path)
full_path.parent.mkdir(parents=True, exist_ok=True)

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
)