Skip to content

Commit

Permalink
Merge pull request #63 from statsig-io/fix-time-operators
Browse files Browse the repository at this point in the history
fix time operators
  • Loading branch information
jkw-statsig authored Apr 26, 2022
2 parents 2b6c4aa + cc007d7 commit 433440a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions statsig/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,9 @@ def __evaluate_condition(self, user, condition):
elif op == "neq":
return _ConfigEvaluation(False, value != target)
elif op == "before":
return self.__compare_dates(value, target, lambda a, b: a.date() < b.date())
return self.__compare_dates(value, target, lambda a, b: a < b)
elif op == "after":
return self.__compare_dates(value, target, lambda a, b: a.date() > b.date())
return self.__compare_dates(value, target, lambda a, b: a > b)
elif op == "on":
return self.__compare_dates(value, target, lambda a, b: a.date() == b.date())
elif op == "in_segment_list" or op == "not_in_segment_list":
Expand Down
2 changes: 1 addition & 1 deletion statsig/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.9.2'
__version__ = '0.9.3'

0 comments on commit 433440a

Please sign in to comment.