[ckan-changes] commit/ckanext-csw: amercader: Update harvest objects dates denominations

Bitbucket commits-noreply at bitbucket.org
Fri May 13 09:25:50 UTC 2011


1 new changeset in ckanext-csw:

http://bitbucket.org/okfn/ckanext-csw/changeset/00280ee28730/
changeset:   r30:00280ee28730
user:        amercader
date:        2011-05-13 11:25:40
summary:     Update harvest objects dates denominations
affected #:  1 file (2 bytes)

--- a/ckanext/csw/controller.py	Fri May 06 13:10:04 2011 +0100
+++ b/ckanext/csw/controller.py	Fri May 13 10:25:40 2011 +0100
@@ -386,7 +386,7 @@
                 doc = Session.query(HarvestObject
                                     ).filter(HarvestObject.guid==guid
                                         ).filter(HarvestObject.package!=None
-                                             ).order_by(HarvestObject.created.desc()
+                                             ).order_by(HarvestObject.gathered.desc()
                                                         ).limit(1).first()
 
                 try:
@@ -405,7 +405,7 @@
             doc = Session.query(HarvestObject
                                 ).filter(HarvestObject.guid==ident
                                     ).filter(HarvestObject.package!=None
-                                         ).order_by(HarvestObject.created.desc()
+                                         ).order_by(HarvestObject.gathered.desc()
                                                     ).limit(1).first()
             if doc is None:
                 continue

Repository URL: https://bitbucket.org/okfn/ckanext-csw/

--

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