fix #5 (global name 'Authorizer' is not defined)
This commit is contained in:
parent
78cd2a95a6
commit
8964f48879
|
@ -80,8 +80,9 @@ def get_resource_visits_for_url(url):
|
||||||
def get_top_packages(limit=20):
|
def get_top_packages(limit=20):
|
||||||
items = []
|
items = []
|
||||||
authorizer = Authorizer()
|
authorizer = Authorizer()
|
||||||
q = authorizer.authorized_query(PSEUDO_USER__VISITOR,
|
# caveat emptor: the query below will not filter out private
|
||||||
model.Package)
|
# or deleted datasets (TODO)
|
||||||
|
q = model.Session.query(model.Package)
|
||||||
connection = model.Session.connection()
|
connection = model.Session.connection()
|
||||||
package_stats = get_table('package_stats')
|
package_stats = get_table('package_stats')
|
||||||
s = select([package_stats.c.package_id,
|
s = select([package_stats.c.package_id,
|
||||||
|
|
Loading…
Reference in New Issue