refactor(api): format with ruff
This commit is contained in:
parent
a936500101
commit
2a35386c1d
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user