From c8fc4d20dda1805cc665ef83c8b43a0e9b7251a8 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 25 Oct 2009 21:05:45 +0000 Subject: [PATCH] Added = and == to match for similar and exact text_only date matches svn: r13417 --- src/gen/lib/date.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gen/lib/date.py b/src/gen/lib/date.py index 8c5a4d240..38c413a30 100644 --- a/src/gen/lib/date.py +++ b/src/gen/lib/date.py @@ -971,8 +971,10 @@ class Date(object): """ if (other_date.modifier == Date.MOD_TEXTONLY or self.modifier == Date.MOD_TEXTONLY): - if comparison in ["=", "=="]: + if comparison == "=": return (self.text.upper().find(other_date.text.upper()) != -1) + elif comparison == "==": + return self.text == other_date.text else: return False if (self.sortval == 0 or other_date.sortval == 0):