Skip to content

Commit 62e20e4

Browse files
committed
named params
1 parent afe9123 commit 62e20e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/slackBotFunction/app/slack/slack_events.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def store_qa_pair(conversation_key, user_query, bot_response, message_ts, sessio
8080
"created_at": int(time.time()),
8181
"ttl": int(time.time()) + TTL_FEEDBACK,
8282
}
83-
store_state_information(item)
83+
store_state_information(item=item)
8484
logger.info("Stored Q&A pair", extra={"conversation_key": conversation_key, "message_ts": message_ts})
8585
except Exception as e:
8686
logger.error("Failed to store Q&A pair", extra={"error": str(e)})
@@ -325,7 +325,7 @@ def store_feedback(
325325
if feedback_text:
326326
feedback_item["feedback_text"] = feedback_text[:4000]
327327

328-
store_state_information(feedback_item, condition)
328+
store_state_information(item=feedback_item, condition=condition)
329329

330330
# Mark Q&A as having received feedback to prevent deletion
331331
if message_ts:
@@ -414,7 +414,7 @@ def store_conversation_session(
414414
if latest_message_ts:
415415
item["latest_message_ts"] = latest_message_ts
416416

417-
store_state_information(item)
417+
store_state_information(item=item)
418418
logger.info("Stored session", extra={"session_id": session_id, "conversation_key": conversation_key})
419419
except Exception:
420420
logger.error("Error storing session", extra={"error": traceback.format_exc()})

0 commit comments

Comments
 (0)