mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-10-27 02:37:13 +01:00
fix: ValueTracker.evaluate() should not skip falsy values like 0
This commit is contained in:
parent
85b1be10c8
commit
84a2fa76b3
2 changed files with 25 additions and 1 deletions
|
|
@ -490,7 +490,7 @@ class ValueTracker:
|
|||
return "text"
|
||||
|
||||
def evaluate(self, value: object) -> None:
|
||||
if not value or not self.couldbe:
|
||||
if value is None or not self.couldbe:
|
||||
return
|
||||
not_these: list[str] = []
|
||||
for name, test in self.couldbe.items():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue