[ckan-changes] commit/ckanext-dgu: amercader: Update harvest objects dates denominations
Bitbucket
commits-noreply at bitbucket.org
Wed May 11 16:09:50 UTC 2011
1 new changeset in ckanext-dgu:
http://bitbucket.org/okfn/ckanext-dgu/changeset/64a8b0bc0a73/
changeset: r267:64a8b0bc0a73
user: amercader
date: 2011-05-11 18:09:12
summary: Update harvest objects dates denominations
affected #: 1 file (80 bytes)
--- a/ckanext/dgu/plugin.py Fri May 06 18:17:31 2011 +0100
+++ b/ckanext/dgu/plugin.py Wed May 11 17:09:12 2011 +0100
@@ -107,7 +107,8 @@
# We need the guid from the HarvestedObject!
doc = Session.query(HarvestObject). \
filter(HarvestObject.package_id==c.pkg.id). \
- order_by(HarvestObject.created.desc()). \
+ order_by(HarvestObject.metadata_modified_date.desc()). \
+ order_by(HarvestObject.gathered.desc()). \
limit(1).first()
if doc:
data = {'guid': doc.guid}
Repository URL: https://bitbucket.org/okfn/ckanext-dgu/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the ckan-changes
mailing list