Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -30,9 +30,9 @@ def parse_excel_file(file_path):
|
|
| 30 |
materials = []
|
| 31 |
for _, row in df.iterrows():
|
| 32 |
material = {
|
| 33 |
-
"code": str(row[resolved_columns["کد
|
| 34 |
-
"description": str(row[resolved_columns["
|
| 35 |
-
"quantity": float(row[resolved_columns["
|
| 36 |
"unit": str(row[resolved_columns["واحد"]]).strip()
|
| 37 |
}
|
| 38 |
materials.append(material)
|
|
|
|
| 30 |
materials = []
|
| 31 |
for _, row in df.iterrows():
|
| 32 |
material = {
|
| 33 |
+
"code": str(row[resolved_columns["کد"]]).strip(),
|
| 34 |
+
"description": str(row[resolved_columns["عنوان"]]).strip(),
|
| 35 |
+
"quantity": float(row[resolved_columns["تعداد"]]),
|
| 36 |
"unit": str(row[resolved_columns["واحد"]]).strip()
|
| 37 |
}
|
| 38 |
materials.append(material)
|