ovrathi1 commited on
Commit
c590366
·
verified ·
1 Parent(s): eefb842

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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