Skip to content

Commit a0d1bd2

Browse files
committed
Extract conversation ID from file name for improved data processing
1 parent 623ce40 commit a0d1bd2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

infra/scripts/index_scripts/04_cu_process_custom_data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ def get_field_value(fields, field_name, default=""):
428428
timestamp_format = "%Y-%m-%d %H_%M_%S" # Adjust format if necessary
429429
start_timestamp = datetime.strptime(start_time, timestamp_format)
430430

431+
conversation_id = file_name.split('convo_', 1)[1].split('_')[0]
431432
conversationIds.append(conversation_id)
432433

433434
fields = result['result']['contents'][0]['fields']

0 commit comments

Comments
 (0)