[ckan-changes] commit/ckan: kindly: get rid of deleted packages from home

Bitbucket commits-noreply at bitbucket.org
Wed Jun 29 16:18:40 UTC 2011


1 new changeset in ckan:

http://bitbucket.org/okfn/ckan/changeset/d0f7e5eced20/
changeset:   d0f7e5eced20
branch:      feature-1141-moderated-edits-ajax
user:        kindly
date:        2011-06-29 18:18:21
summary:     get rid of deleted packages from home
affected #:  1 file (50 bytes)

--- a/ckan/logic/action/get.py	Wed Jun 29 12:25:33 2011 +0100
+++ b/ckan/logic/action/get.py	Wed Jun 29 17:18:21 2011 +0100
@@ -30,6 +30,7 @@
     limit = context.get("limit")
 
     q = ckan.authz.Authorizer().authorized_query(user, model.PackageRevision)
+    q = q.filter_by(state='active', current=True)
     q = q.order_by(model.package_revision_table.c.revision_timestamp.desc())
     if limit:
         q = q.limit(limit)

Repository URL: https://bitbucket.org/okfn/ckan/

--

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