masadonline commited on
Commit
0e167eb
·
verified ·
1 Parent(s): 3e432a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -232,6 +232,9 @@ def start_conversation_monitor(client, index, embed_model, text_chunks):
232
 
233
  # Get all conversations and find the most recent one after APP_START_TIME
234
  conversations = client.conversations.v1.conversations.list(limit=20)
 
 
 
235
  sorted_convos = sorted(
236
  [c for c in conversations if c.date_created > APP_START_TIME],
237
  key=lambda c: c.date_created,
 
232
 
233
  # Get all conversations and find the most recent one after APP_START_TIME
234
  conversations = client.conversations.v1.conversations.list(limit=20)
235
+ print("Conversations (date_created) sorted in descending order:")
236
+ for c in sorted_convos:
237
+ print(c.date_created)
238
  sorted_convos = sorted(
239
  [c for c in conversations if c.date_created > APP_START_TIME],
240
  key=lambda c: c.date_created,