Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|