Skip to content

Commit ea6e87e

Browse files
committed
fix(verify): correct tolerance type in smartphone weight gate
1 parent 49d022d commit ea6e87e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎app/verify/wikipedia_smartphone_backfill.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ def compare_specs(
624624
rec_wt = record.get("weight_g")
625625
if isinstance(rec_wt, (int, float)) and row.weight_g is not None:
626626
rec_wt_val = float(rec_wt)
627-
tolerance = max(5.0, round(0.04 * max(rec_wt_val, row.weight_g)))
627+
tolerance = max(5, round(0.04 * max(rec_wt_val, row.weight_g)))
628628
if abs(rec_wt_val - row.weight_g) <= tolerance:
629629
agreements.append("weight_g")
630630
else:

0 commit comments

Comments
 (0)