changeset fc3fc2c30bc1 in modules/attendance:default
details:
https://hg.tryton.org/modules/attendance?cmd=changeset;node=fc3fc2c30bc1
description:
Compare cache result using equality instead of is
issue9963
review337301002
diffstat:
attendance.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 3d803ee3a8c7 -r fc3fc2c30bc1 attendance.py
--- a/attendance.py Sat Dec 19 17:08:44 2020 +0100
+++ b/attendance.py Sun Jan 03 12:57:56 2021 +0100
@@ -206,7 +206,7 @@
def get_last_period_date(cls, company):
key = int(company)
result = cls._last_period_cache.get(key, -1)
- if result is -1:
+ if result == -1:
records = cls.search([
('company', '=', company),
('state', '=', 'closed'),