Skip to content

Commit e3d4195

Browse files
updated the varianle name and message
1 parent bbb9ca7 commit e3d4195

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

infra/scripts/index_datasets.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@
5151
#if blob.name.endswith(".csv"):
5252
title = blob.name.replace(".csv", "")
5353
title = blob.name.replace(".json", "")
54-
csv_data = container_client.download_blob(blob.name).readall()
54+
data = container_client.download_blob(blob.name).readall()
5555

5656
try:
5757
print(f"Reading data from blob: {blob.name}...")
58-
csv_text = csv_data.decode('utf-8')
58+
text = data.decode('utf-8')
5959
data_list.append({
60-
"content": csv_text,
60+
"content": text,
6161
"id": str(idx),
6262
"title": title
6363
})
6464
success_count += 1
6565
except Exception as e:
66-
print(f"Error reading CSV file - {blob.name}: {e}")
66+
print(f"Error reading file - {blob.name}: {e}")
6767
fail_count += 1
6868
continue
6969

0 commit comments

Comments
 (0)