utils: removing diff key from result dictionary

This commit is contained in:
paulourbano
2023-05-05 22:25:38 +02:00
committed by David de la Iglesia Castro
parent 75952c4e36
commit dfa5f4d9a0
+1 -2
View File
@@ -26,8 +26,7 @@ def _diff_vals(old, new, with_unchanged):
res = {"old": old, "new": new}
if isinstance(new, (int, float)) and isinstance(old, (int, float)):
res["diff"] = new - old
elif isinstance(new, str) and isinstance(old, str):
res["diff"] = ""
return res