[ckan-changes] [ckan/ckan] 656876: [#1701] Don't index empty dates as the current one

GitHub noreply at github.com
Fri Aug 1 16:00:26 UTC 2014

  Branch: refs/heads/release-v2.0.5
  Home:   https://github.com/ckan/ckan
  Commit: 6568761003653d4d800c2e3ef3070e51c9217e86
  Author: amercader <amercadero at gmail.com>
  Date:   2014-08-01 (Fri, 01 Aug 2014)

  Changed paths:
    M ckan/lib/search/index.py

  Log Message:
  [#1701] Don't index empty dates as the current one

When parsing an empty string, dateutil will always use a default one,
which by default is now(). We use here a fake date to see if that was
the case, and if so remove the value from the dict to index.

More information about the ckan-changes mailing list