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

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

  Branch: refs/heads/release-v2.1.3
  Home:   https://github.com/ckan/ckan
  Commit: 4b504abe023a68067a00bc59af4011a152ce3efb
  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