Skip to content

Commit 709dcd9

Browse files
pylint fixes
1 parent 4dcd827 commit 709dcd9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

content-gen/src/backend/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,12 +1351,12 @@ async def update_conversation(conversation_id: str):
13511351
async def delete_all_conversations():
13521352
"""
13531353
Delete all conversations for the current user.
1354-
1354+
13551355
Uses authenticated user from EasyAuth headers.
13561356
"""
13571357
auth_user = get_authenticated_user()
13581358
user_id = auth_user["user_principal_id"]
1359-
1359+
13601360
try:
13611361
cosmos_service = await get_cosmos_service()
13621362
deleted_count = await cosmos_service.delete_all_conversations(user_id)

content-gen/src/backend/services/cosmos_service.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -624,26 +624,26 @@ async def delete_all_conversations(
624624
) -> int:
625625
"""
626626
Delete all conversations for a user.
627-
627+
628628
Args:
629629
user_id: User ID to delete conversations for
630-
630+
631631
Returns:
632632
Number of conversations deleted
633633
"""
634634
await self.initialize()
635-
635+
636636
# First get all conversations for the user
637637
conversations = await self.get_user_conversations(user_id, limit=1000)
638-
638+
639639
deleted_count = 0
640640
for conv in conversations:
641641
try:
642642
await self.delete_conversation(conv["id"], user_id)
643643
deleted_count += 1
644644
except Exception as e:
645645
logger.warning(f"Failed to delete conversation {conv['id']}: {e}")
646-
646+
647647
logger.info(f"Deleted {deleted_count} conversations for user {user_id}")
648648
return deleted_count
649649

0 commit comments

Comments
 (0)