refactor(api): format with ruff

This commit is contained in:
vsyroc 2025-07-02 12:23:22 +05:00
parent a936500101
commit 2a35386c1d

View File

@ -83,9 +83,7 @@ async def create_password_key(connection: AsyncConnection, password: str | None,
expiry=datetime.now(timezone.utc) + timedelta(days=365), expiry=datetime.now(timezone.utc) + timedelta(days=365),
status=KeyStatus.ACTIVE, status=KeyStatus.ACTIVE,
) )
stmt.on_duplicate_key_update( stmt.on_duplicate_key_update(key_value=hashed_password)
key_value=hashed_password
)
await connection.execute(stmt) await connection.execute(stmt)
await connection.commit() await connection.commit()