From ecc7c244675c1054e89f7b2efef2e5b0c0fcc45e Mon Sep 17 00:00:00 2001 From: Drew Pearce Date: Tue, 23 Oct 2018 15:54:56 -0400 Subject: [PATCH] simple fix for not equals in dynamodb filter expressions. i suspect this was just a typo --- moto/dynamodb2/comparisons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/dynamodb2/comparisons.py b/moto/dynamodb2/comparisons.py index 53226c557..6d37345fe 100644 --- a/moto/dynamodb2/comparisons.py +++ b/moto/dynamodb2/comparisons.py @@ -383,7 +383,7 @@ class OpNotEqual(Op): def expr(self, item): lhs = self._lhs(item) rhs = self._rhs(item) - return lhs == rhs + return lhs != rhs class OpLessThanOrEqual(Op):