Update app.py
Browse files
app.py
CHANGED
|
@@ -159,6 +159,7 @@ def update_inventory_and_reservation(preferred, search_by, action, part_number=N
|
|
| 159 |
|
| 160 |
column_to_update = None
|
| 161 |
for column in [col for col in inventory.columns if 'QTY ' in col]:
|
|
|
|
| 162 |
if float(inventory.at[inventory_index, column]) == float(from_length):
|
| 163 |
column_to_update = column
|
| 164 |
break
|
|
|
|
| 159 |
|
| 160 |
column_to_update = None
|
| 161 |
for column in [col for col in inventory.columns if 'QTY ' in col]:
|
| 162 |
+
# Ensure both values are compared as floats
|
| 163 |
if float(inventory.at[inventory_index, column]) == float(from_length):
|
| 164 |
column_to_update = column
|
| 165 |
break
|