fix #5 (global name 'Authorizer' is not defined)

This commit is contained in:
Augusto Herrmann 2014-04-02 16:47:59 -03:00
parent 78cd2a95a6
commit 8964f48879
1 changed files with 3 additions and 2 deletions

View File

@ -80,8 +80,9 @@ def get_resource_visits_for_url(url):
def get_top_packages(limit=20):
items = []
authorizer = Authorizer()
q = authorizer.authorized_query(PSEUDO_USER__VISITOR,
model.Package)
# caveat emptor: the query below will not filter out private
# or deleted datasets (TODO)
q = model.Session.query(model.Package)
connection = model.Session.connection()
package_stats = get_table('package_stats')
s = select([package_stats.c.package_id,